ut
来自「Algorithms for Image Processing and Comp」· 代码 · 共 55 行
TXT
55 行
@c ----------------------------------------------------------------------
@node utime, file system
@heading @code{utime}
@subheading Syntax
@example
#include <utime.h>
itn utime(const char *file, const struct utimbuf *time);
@end example
@subheading Description
This function sets the modification timestamp on the @var{file}. The
new time is stored in this structure:
@example
struct utimbuf
@{
time_t actime; /* access time (unused) */
time_t modtime; /* modification time */
@};
@end example
@subheading Return Value
Zero for success, nonzero for failure.
@subheading Example
@example
struct utimbuf t;
t.modtime = time(0);
utime("data.txt", &t);
@end example
@c ----------------------------------------------------------------------
@node utimes, unix
@heading @code{utimes}
@subheading Syntax
@example
int utimes(const char *file, struct timevar tvp[2]);
@end example
@subheading Description
This function does nothing. It is provided to assist in
porting Unix programs.
@subheading Return Value
Zero for success, nonzero for failure.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?