What's so bad about scanf anyway??? (really what's bad about gets)
Richard A. O'Keefe
ok at goanna.cs.rmit.oz.au
Wed Nov 28 17:25:59 AEST 1990
>Let <EOF> represent your end-of-file character on a UNIX system
In article <1990Nov27.110005.7203 at ericsson.se>, epames at eos.ericsson.se (Michael Salmon) writes:
> I think that the substantial point is that there is no "end-of-file
> character".
According to the UNIX manuals, there *IS*. The end of file character is
a character you type on the keyboard. Nobody has ever claimed that read()
or gets() or getchar() *return* this character to the caller, or that they
themselves ever see it. Never mind whether the name is confusing, that *IS*
the name used in the UNIX manuals.
To those who understood the point the first time, sorry to have troubled
you. To anyone who still thinks 'that there is no "end-of-file character"'
on a UNIX system, do us all a favour, *read* *the* *fine* *manuals*.
--
I am not now and never have been a member of Mensa. -- Ariadne.
More information about the Comp.lang.c
mailing list