Intermec 5055 Reference Guide

Page of 216
im_file_time
5-17
5
im_file_time
Purpose:
This function returns the time stamp of the target file.
Syntax:
#include  "im5055.h"
IM_STATUS im_file_time
    (IM_CHAR *
fname,
     time_t far *
ltime
)
IN Parameters:
fname    Pointer to IM_CHAR. This variable points to a string that must contain a drive
letter and a file name.
OUT Parameters:
ltime    Far pointer to standard C-type time variable. im_file_time places the time stamp
here.
Return Value:
This function returns one of these codes:
IM_SUCCESS    Success.
IM_INVALID_FILE    Target file not found or does not exist.
Notes:
The time_t variable is the same as the one used in the MS-DOS C standard time
definition and is defined as:  typedef long time_t;
Example
See example for im_file_duplicate.