filesize function

Reza Habib reza@psych.utoronto.ca
Sat Jul 10 07:33:00 GMT 1999


Hi.  I'm using the filesize function from io.h on mingw32 with egcs 1.1.2.
The size reported by the function is incorrect.  The exact same line reports
the correct value with either visual c++ or borland c++.  Is this a bug in
the mingw32 library?  Here is the line:

FILE *datamatfile = fopen(argv[1],"rb");
long length = filelength(fileno(datamatfile));

Thanks.

Reza


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list