is it really necessary for character values to be positive?

Doug Gwyn gwyn at brl-smoke.ARPA
Tue Jan 20 19:05:13 AEST 1987


In article <44 at houligan.UUCP> dave at murphy.UUCP writes:
>If anyone knows of any reason why the value of EOF can't be implementation-
>specific, I'd like to hear about it.

Of course EOF can be defined differently; its only constraint is that
it must be distinct from any possible valid value returned by getc()
(which, by the way, does NOT sign-extend input chars).



More information about the Comp.lang.c mailing list