(under Windows XP, CPU 32-bit Athlon XP, gcc version 3.4.5, mingw special)
Is there some simple way to return the size of a large file (2GB+) without opening it? GCC seems to not understand "struct stat64" (missing in the header "sys/stat.h")
Coding something like:
Expand|Select|Wrap|Line Numbers
- struct stat64 statbf;
My lame workaround is to open the large file:
Expand|Select|Wrap|Line Numbers
- FILE *f;
- uint64_t size;
- f = fopen64( name, "rb" );
- fseeko64( f, 0L, 2 );
- size = ftello64( f );
- fclose( f );
Thanks