down

Richard A. O'Keefe ok at quintus.uucp
Tue Dec 13 08:47:00 AEST 1988


In article <349 at greens.UUCP> matthew at sunpix.UUCP ( Sun NCAA) writes:
>Before closing, there is one logic flaw in your scrap of code. '(c == '\n')'
>does not have to evaluate to an integer 1.  It must only be a non-zero value
>if true.

Wrong.  All comparisons must return 0 or 1.  No other result is legal in C.



More information about the Comp.lang.c mailing list