Ron Ford <> wrote:
> On Thu, 03 Jul 2008 12:02:58 GMT, Richard Bos posted:
>
> > Ron Ford <> wrote:
> >
> >> EOF has alwyas been negative one on my impkementation.
> >
> > That's as may be, and it is indeed by far the most common value, but all
> > the Standard demands is that EOF is negative. Besides, EOF is both
> > clearer, and only a single character longer, than -1.
>
> My impkemenation is sometimes more clever than the monkey on the keyboard.
Exactly. So use EOF, which is guaranteed by the Standard to be valid for
all implementations, not -1, which your monkey believes to be valid
right here, right now.
Richard
|