| www.delorie.com/djgpp/doc/libc-2.01/libc_673.html | search |
#include <sys/time.h> int utimes(const char *file, struct timeval tvp[2]);
This function sets the timestamp of the file to tvp[1].tv_sec.
Zero on success, nonzero on failure.
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.
| prev next webmaster | delorie software privacy |
| Copyright © 1997 | Updated Apr 1997 |