Howdy,
I'm trying to modify the date modified or created compiling under linux/unix/osx. What library do I need for that?
Kind regards, Maarten
Howdy,
I'm trying to modify the date modified or created compiling under linux/unix/osx. What library do I need for that?
Kind regards, Maarten
utimes() in sys/time.h seems like a fit. From the man page:
int
utimes(const char *path, const struct timeval times[2]);
DESCRIPTION
The access and modification times of the file named by path or referenced by fildes are changed as specified by the argument times.