This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

filesize function


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]