getc() != EOF; -1 byte in fi - (nf)

pedz at smu.UUCP pedz at smu.UUCP
Fri Jun 15 03:40:00 AEST 1984


#R:mcvax:-583600:smu:18600014:000:351
smu!pedz    Jun 14 12:40:00 1984

This is not true at all.  getch is defined to return a value which
is not a legal character value upon encountering EOF.  This value
is what is defined as EOF in the stdio.h.  Although it is generally 
true that EOF is -1 it is not defined to be such by the language and
any program which tests for -1 instead of EOF is wrong!

Perry
convex!smu!pedz



More information about the Comp.unix.wizards mailing list