00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #include <windows.h>
00012
00013 #include <stdarg.h>
00014 #include <stdio.h>
00015
00016 #include "arch.h"
00017
00018 #include <sys/stat.h>
00019
00020
00038 int arch_filesize(const char *Filename, off_t *Filesize)
00039 {
00040 struct _stat statrec;
00041 size_t ret;
00042
00043 ret = _stat(Filename, &statrec);
00044
00045 if (ret == 0)
00046 {
00047 *Filesize = statrec.st_size;
00048 ret = 0;
00049 }
00050
00051 return ret;
00052 }