utime2.c
来自「标准c库代码,可以应用于各个系统提供了大量的基本函数」· C语言 代码 · 共 27 行
C
27 行
/* utime() system call for sunos4 */#ifndef __svr4__#include <time.h>#include <sys/time.h>#include <utime.h>intutime (char *path, struct utimbuf *times){ if (times != NULL) { struct timeval timevals[2]; timevals[0].tv_sec = (long int) times->actime; timevals[0].tv_usec = 0; timevals[1].tv_sec = (long int) times->modtime; timevals[1].tv_usec = 0; return utimes (path, timevals); } return utimes (path, (struct timeval *) 0);}#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?