|
||
char *file_time ( char *name, char *buf )
char *name; // name of file on disk char *buf; // character array to receive time string
|
|
|
Synopsis |
#include "silver.h"
The file_time function retrieves the last modification time of a file on disk, whose name as given by name . The date is returned in buf as a null-terminated string, formatted as "hh:mm:ss".
|
|
Parameters |
name is a null-terminated string specifying the name of the disk file. buf is the address of a character buffer that is to receive the time string.
|
|
Return Value |
file_time returns NULL if the file does not exist, or if some other error occurs. Otherwise, file_time returns buf .
|
|
See Also |
|
|
|
|