![]() |
![]()
| ![]() |
![]()
NAMExt_file_mod_cmp() - Compare time stamps on two files LIBRARY#include <xtend/file.h> -lxtend SYNOPSISint xt_file_mod_cmp(const char *file1, const char *file2) ARGUMENTSfile1, file2: Names of two filesystem objects whose time stamps are to be compared DESCRIPTIONfile_mod_cmp() compares the modification times of file1 and file2. It compares modification times on two files using the same rules as "make", and returns an strcmp(3) compatible status value indicating which is older. A file that doesn't exist is considered older than the big bang. RETURN VALUESA value < 0 if file1 is older or does not exist. A value > 0 if file2 is older or does not exist. 0 if the files have identical modification times, or neither exists. SEE ALSOmake(1)
|