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>getftime</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
getftime
========

Syntax
------

     #include <dos.h>
     
     int getftime(int handle, struct ftime *ptr);

Description
-----------

Get the timestamp for the given file handle.  The return structure is as
follows:

     struct ftime {
       unsigned ft_tsec:5;       /* 0-29, double to get real seconds */
       unsigned ft_min:6;       /* 0-59 */
       unsigned ft_hour:5;       /* 0-23 */
       unsigned ft_day:5;       /* 1-31 */
       unsigned ft_month:4;       /* 1-12 */
       unsigned ft_year:7;       /* since 1980 */
     }

Return Value
------------

Zero on success, nonzero on failure.

Example
-------

     struct ftime t;
     getftime(fd, &t);


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