⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 utime2.c

📁 Newlib 嵌入式 C库 标准实现代码
💻 C
字号:
/* 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -