delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/07/10/10:34:56

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" <reza AT psych DOT utoronto DOT ca>
To: "Cygwin Mailing List" <cygwin AT sourceware DOT cygnus DOT com>
Subject: filesize function
Date: Sat, 10 Jul 1999 10:37:03 -0400
Message-ID: <000a01becae1$ad4d01b0$d28e94d1@newton>
MIME-Version: 1.0
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019