Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- libc - <b>utimes</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
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.

Example
-------

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


Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson