delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/01/13/11:44:57

Message-ID: <001201c2bb23$a57a4b60$7000a8c0@edd>
From: "Edd \"HotCakes\" Dawson" <hotcakes AT planetquake DOT com>
To: <djgpp AT delorie DOT com>
References: <200301070413 DOT 12292 DOT deemus AT rambler DOT ru>
Subject: Re: File reading problem
Date: Mon, 13 Jan 2003 16:48:48 -0000
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
X-VSMLoop: planetquake.com
Reply-To: djgpp AT delorie DOT com

Hi,

f = fopen (argv [1], "rb");

instead of

f = fopen (argv [1], "r");

Edd

----- Original Message -----
From: "Dmitry Rutsky" <deemus AT rambler DOT ru>
Newsgroups: comp.os.msdos.djgpp
To: <djgpp AT delorie DOT com>
Sent: Tuesday, January 07, 2003 1:13 AM
Subject: File reading problem


Hello.

Why doesn't the included program work correctly?  It is supposed to
determine
file sizes by dumb method, and does it under Linux. But when I tried it
with
the latest DJGPP, both in DOSEmu and Windows 2000, it gave wrong numbers
for
almost any files.  I've discovered this problem when I tried to test the
abilities of DJGPP by entertaining with my old school project, a Huffman
file
archiver.  It worked fine under Linux, but cannot work at all under DJGPP.

--- Dmitry Rutsky


- Raw text -


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