Mail Archives: djgpp/2000/05/11/10:18:39
> Date: Thu, 11 May 2000 02:10:45 -0500
> From: "Thomas J. Hruska" <shinelight AT crosswinds DOT net>
>
> My aim is to prove which one doesn't follow the ANSI standard: gcc
> and all ports of it, or Borland.
My references indicate that the end-of-file condition should be set
when the stream is at the end of the file, that is, when you already
read all of the file's characters, but not before.
So it looks like DJGPP's implementation is correct.
And, btw, the library doesn't have anything to do with the compiler.
In particular, the Linux library is an entirely different beast than
the DJGPP library, although both DJGPP and Linux use GCC as their
compiler.
> So, to begin my proof, I went onto the manpages for Linux (on feof) and
> discovered that the manpages claim to be following the specifications in
> "C3.159-1989" I have searched both ANSI.org and NSSN.org as well as
> regular web search engines for this particular document. However, I am
> unable to find this document or anything newer.
The ANSI standard is not available on-line, ANSI/ISO sell it for quite
a large sum of money.
You can find the draft of the newest so-called C99 Standard, though.
- Raw text -