getc() != EOF

Ken Turkowski ken at turtlevax.UUCP
Tue Jun 5 08:23:07 AEST 1984


The number 0xff is a legal return value from getc(), and is different from -1.
Therefore, c in (c = getc(file)) should be int.
-- 
Ken Turkowski @ CADLINC, Palo Alto, CA
UUCP: {amd70,decwrl,flairvax}!turtlevax!ken



More information about the Comp.unix.wizards mailing list