This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: B19 problem with fread() and buffering
- To: gnu-win32 at cygnus dot com, Todd Massey <massey at surefirev dot com>
- Subject: Re: B19 problem with fread() and buffering
- From: Earnie Boyd <earnie_boyd at yahoo dot com>
- Date: Sat, 5 Sep 1998 18:38:35 -0700 (PDT)
- Reply-To: earnie_boyd at yahoo dot com
---Todd Massey <massey@surefirev.com> wrote:
>
>
> I call fread with a sizeof of 4 and a count of 315 after reading
> 500 bytes out of a file and I only get back a count of 42 and then
> the FILE* fp->_flags == 1188, when I called fread() it fp_uflags was
1156, so
> for some reason it thinks it reached end of file. Now this is a
binary
> file and I use fopen() to open it .. I would expect it to work just
fine
> the routine that wrote out the file used fwrite in the B19 stuff..
>
> So the real question is.. am I over running some buffer?
The real question I have is are you opening the files specifically
stating that it is to use binary file processing?
==
- \\||//
---o0O0--Earnie--0O0o----
--earnie_boyd@yahoo.com--
------ooo0O--O0ooo-------
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".