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

Rich Salz rsalz at bbn.com
Sun Mar 31 06:04:52 AEST 1991


In <3555 at inews.intel.com> bhoughto at hopi.intel.com (Blair P. Houghton) writes:
>toupper.c:    while ( (int) (c = getchar()) != EOF )
The cast implies that c is char.  If so, this line is buggy.
-- 
Please send comp.sources.unix-related mail to rsalz at uunet.uu.net.
Use a domain-based address or give alternate paths, or you may lose out.



More information about the Comp.lang.c mailing list