Main Page | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

file.c

00001 /*
00002  *  This program is free software; you can redistribute it and/or
00003  *  modify it under the terms of the GNU General Public License
00004  *  as published by the Free Software Foundation; either version
00005  *  2 of the License, or (at your option) any later version.
00006  *
00007  *  Copyright 2004 Spiro Trikaliotis
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 }

Generated on Sun Apr 30 18:45:49 2006 for opencbm by  doxygen 1.4.2