标签:cat int span 需要 file types.h pes name nbsp
 #include <sys/types.h>
       #include <utime.h>
int utime(const char *filename, const struct utimbuf *times);
#include <sys/time.h>
int utimes(const char *filename, const struct timeval times[2]);
 struct utimbuf {
               time_t actime;       /* access time */
               time_t modtime;      /* modification time */
           };
把文件的存取时间设置为times的actime
把文件的修改时间设置为times的modtime
如果times是个空指针将 “存取时间” 和 “修改时间” 设置为当前时间。
NULL需要头文件#include <unistd.h>
标签:cat int span 需要 file types.h pes name nbsp
原文地址:http://www.cnblogs.com/zhangxuan/p/6323374.html