Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com From: "Reza Habib" To: "Cygwin Mailing List" Subject: filesize function Date: Sat, 10 Jul 1999 10:37:03 -0400 Message-ID: <000a01becae1$ad4d01b0$d28e94d1@newton> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2377.0 X-MIMEOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Importance: Normal 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 AT sourceware DOT cygnus DOT com