Go to the first, previous, next, last section, table of contents.


utimes

Syntax

#include <sys/time.h>

int utimes(const char *file, struct timeval tvp[2]);

Description

This function sets the timestamp of the file to tvp[1].tv_sec.

Return Value

Zero on success, nonzero on failure.

Portability

not ANSI, not POSIX

Example

time_t now;
struct timeval tvp[2];
time(&now);
tvp[0].tv_sec = now + 100;
utimes("foo.dat", tvp);


Go to the first, previous, next, last section, table of contents.