One more point regarding = and == (more flamage)

Doug Gwyn gwyn at smoke.brl.mil
Fri Apr 5 03:56:31 AEST 1991


In article <3646 at inews.intel.com> bhoughto at nevin.intel.com (Blair P. Houghton) writes:
>	while ( ( c = (char) getchar() ) != (char)EOF )

Assuming that the loop is meant to handle all possible byte values,
this is also buggy.



More information about the Comp.lang.c mailing list