delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/09/06/18:42:21

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

Ian Collins <Ian AT kiwiplan DOT co DOT 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 AT cs DOT mu DOT oz DOT 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 AT 128 DOT 250 DOT 37 DOT 3         |     -- the last words of T. S. Garp.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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