public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Fergus Henderson <fjh@cs.mu.oz.au>
To: gnu-win32@cygnus.com
Subject: Re: fread
Date: Thu, 04 Sep 1997 21:18:00 -0000	[thread overview]
Message-ID: <199709041500.BAA09202@mundook.cs.mu.OZ.AU> (raw)
In-Reply-To: <07551A47EAD6D01186430060B025C6F40A6CA6@ntserver.kiwiplan2.co.nz>

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".

      reply	other threads:[~1997-09-04 21:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-09-02 21:42 fread Ian Collins
1997-09-04 21:18 ` Fergus Henderson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199709041500.BAA09202@mundook.cs.mu.OZ.AU \
    --to=fjh@cs.mu.oz.au \
    --cc=gnu-win32@cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).