C Programming/POSIX Reference/utime.h

utime.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 edit

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 edit

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 edit