Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uupsi!cmcl2!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: One more point regarding = and == (more flamage) Message-ID: <15705@smoke.brl.mil> Date: 4 Apr 91 17:56:31 GMT References: <3465@litchi.bbn.com> <29444:Mar3120:23:3491@kramden.acf.nyu.edu> <3646@inews.intel.com> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 5 In article <3646@inews.intel.com> bhoughto@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.