📄 utime.c
字号:
#include "lib.h"#include <sys/types.h>#include <time.h>#include <utime.h>#include <errno.h>#include <stdlib.h>#include "sys9.h"#include "dir.h"intutime(const char *path, const struct utimbuf *times){ int n; Dir nd; time_t curt; _nulldir(&nd); if(times == 0) { curt = time(0); nd.atime = curt; nd.mtime = curt; } else { nd.atime = times->actime; nd.mtime = times->modtime; } n = _dirwstat(path, &nd); if(n < 0) _syserrno(); return n;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -