unix環境高級編程-4.8-utime函數

上一節,我們描述了對文件操作的三種時間,這一節主要講述utime函數,既對一個文件的訪問和修改時間。 #include <utime.h> int utime(const char* pathname,const struct utimbuf *times); 成功返回0,失敗返回-1; 此函數所使用的數據結構 struct utimbuf{ time_t actime ;/*access tim
相關文章
相關標籤/搜索