C Programming/POSIX Reference/utime.h
< C Programming < POSIX Referenceutime.h is the header in the C POSIX library for the C programming language that facilitates the setting of file access and modification times.
Member functions
int utime(const char *path, const struct utimbuf *times)
This function sets the access and modification times of the specified file.
The utime() function sets the access and modification times of the file named by the path argument.
Member types
Data types defined in the utime.h
header include:
-
struct utimbuf
-
time_t actime
access time -
time_t modtime
modification time
-
The times are measured in seconds since the Epoch.
References
- http://opengroup.org/onlinepubs/007908775/xsh/utime.h.html
- http://opengroup.org/onlinepubs/007908775/xsh/utime.html
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.