|
||
char *file_date ( char *name, char *buf )
char *name; // name of file on disk char *buf; // character array to receive date string
|
|
|
Synopsis |
#include "silver.h"
The file_date function retrieves the last modification date of a file on disk, whose name as given by name . The date is returned in buf as a null-terminated string, formatted as "dd/mm/yy".
|
|
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 date string.
|
|
Return Value |
file_date returns NULL if the file does not exist, or if some other error occurs. Otherwise, file_date returns buf .
|
|
See Also |
|
|
|
|