getc() != EOF

Alan S. Driscoll alan at allegra.UUCP
Thu May 31 05:05:43 AEST 1984


> ... Char variables are promoted to int in expressions (see C manual)
> and a char -1 is IDENTICAL with an int -1. Unsigned char c could be
> different...

"Whether or not sign-extension occurs for characters is machine
dependent, but it is guaranteed that a member of the standard
character set is non-negative."

	-- C Reference Manual, September 1980

-- 

	Alan S. Driscoll
	AT&T Bell Laboratories



More information about the Comp.unix.wizards mailing list