Mail Archives: djgpp-workers/1998/02/03/05:10:30
On Tue, 3 Feb 1998, Vik Heyndrickx wrote:
> > No, because the problem is that EOF ((int)-1) and 0xff ((int)(signed
> > char)-1) ARE THE SAME NUMBER. No amount of logic can tell the
> > difference.
>
> This sort of difficulties is triggered by "choices made in the past",
> where it was more efficient to return an error code at the same place
> where the normal return value would be returned.
Sorry, you lost me. Where was a ``normal return value'' replaced by an
error code, and how does this relate to EOF (which is -1 on every
platform I saw).
- Raw text -