From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Reza Habib" To: "Cygwin Mailing List" Subject: filesize function Date: Sat, 10 Jul 1999 07:33:00 -0000 Message-id: <000a01becae1$ad4d01b0$d28e94d1@newton> X-SW-Source: 1999-07/msg00213.html 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Reza Habib" To: "Cygwin Mailing List" Subject: filesize function Date: Sat, 31 Jul 1999 18:34:00 -0000 Message-ID: <000a01becae1$ad4d01b0$d28e94d1@newton> X-SW-Source: 1999-07n/msg00213.html Message-ID: <19990731183400.5lQEzC-YSnztUaFYPsNuVqcA1Lgz0c24NR93zgR8mhA@z> 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