Implemented ZFileGetFTime()

This commit is contained in:
pagefault
2001-05-22 04:37:42 +00:00
parent 764b13844e
commit 1745c2c8b5

View File

@@ -21,6 +21,7 @@
#include <io.h> #include <io.h>
#include <direct.h> #include <direct.h>
#include <string.h> #include <string.h>
#include <sys/stat.h>
#include <zlib.h> #include <zlib.h>
#define DWORD unsigned int #define DWORD unsigned int
@@ -227,9 +228,14 @@ DWORD ZFileDelete()
DWORD ZFileGetFTime() DWORD ZFileGetFTime()
{ {
ZFDate=0; struct _stat buf;
ZFTime=0; ZFTime=0;
return(0);
if (_stat(ZFFTimeFName, &buf) < 0) ZFDate=0;
else ZFDate = buf.st_mtime;
return 0;
} }
DWORD ZFileMKDir() DWORD ZFileMKDir()