[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
setftime() Set File Date and Time
#include <io.h>
int setftime(handle,ftimep);
int handle; Handle associated with file
struct ftime *ftimep; Pointer to structure
setftime() sets the file date and time of the disk file associated
with 'handle' to the date and time in the 'ftime' structure pointed
to by 'ftimep'. The 'ftime' structure is defined as follows:
struct ftime {
unsigned ft_tsec: 5; /* Two seconds */
unsigned ft_min: 6; /* Minutes */
unsigned ft_hour: 5; /* Hours */
unsigned ft_dat: 5; /* Days */
unsigned ft_month: 4; /* Months */
insigned ft_year: 7; /*Year - 1980 */
Returns: 0 is returned on success. -1 is returned on error and
'errno' (defined in <stdlib.h>) is set to one of the
following:
EINVFNC Invalid function number
EBADF Bad file number
See Also:
getftime()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson