Sets the modification time for a file.
#include <sys/types.h> #include <utime.h> int utime (const char *filename, struct utimbuf *times);
filenametimesThe modification time is set from the modtime field in the UTIMBUF structure. Although this structure contains a field for access time, only the modification time is set.
| 0 | The file-modification time was changed. | ||||||||
| -1 |
Time was unchanged and the function sets errno to one of these values:
|
| Versions | Defined in | Include | Link to |
|---|---|---|---|
| INtime 3.0 | intime/rt/include/sys/utime.h | sys/types.h utime.h |
clib.lib |