From: fjh@cs.mu.oz.au (Fergus Henderson)
Subject: Re: fread
6 Sep 1997 18:42:21 -0700
Approved: cygnus.gnu-win32@cygnus.com
Distribution: cygnus
Message-ID: <199709041500.BAA09202.cygnus.gnu-win32@mundook.cs.mu.OZ.AU>
References: <07551A47EAD6D01186430060B025C6F40A6CA6@ntserver.kiwiplan2.co.nz>
Original-To: gnu-win32@cygnus.com
Original-Sender: owner-gnu-win32@cygnus.com

Ian Collins <Ian@kiwiplan.co.nz> wrote:

>Is there any known problem with the fread system call in b18?
>
>It doesn't appear to be returning the correct number of bytes read.

Try opening the file in binary mode (e.g. `fopen(file, "rb")')
or mount the filesystem in binary mode.

--
Fergus Henderson <fjh@cs.mu.oz.au>   |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>   |  of excellence is a lethal habit"
PGP: finger fjh@128.250.37.3         |     -- the last words of T. S. Garp.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
