Mail Archives: djgpp/1997/08/02/02:32:53
Erik Max Francis wrote:
>
> A. Sinan Unur wrote:
>
> > that is at best worthless advice. the documentation in this case is
> > plain wrong. it is a small mistake, but fread is supposed to return 0 in
> > case of error.
>
> Actually, fread (and fwrite) return the number of elements actually read
> (or written) -- an error condition is if this number is less than the
> number of elements you passed in. Returning zero means _none_ of the
> elements got read (or written), but there are more failure cases than just
> that.
please guys, let it go. i corrected my stupid mistake several times
after that post.
-- Sinan
- Raw text -