home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Shareware - Software Farm 2
/
wosw_2.zip
/
wosw_2
/
CPROG
/
FDF101.ZIP
/
ELIB.ZOO
/
ftimes.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-04-30
|
458b
|
15 lines
#include <dir.h>
/*
* cmptime
*
* given two files, return positive if the first has a more recent modification
* date/time, zero if the files have the same modification date/time or
* negative if the second is more recent.
*/
long cmptime(const struct ffblk *a, const struct ffblk *b)
{
return (((unsigned long)a->ff_fdate) << 16 | (unsigned long)a->ff_ftime) -
(((unsigned long)b->ff_fdate) << 16 | (unsigned long)b->ff_ftime);
}