Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site bunker.UUCP Path: utzoo!linus!decvax!ittatc!bunker!garys From: garys@bunker.UUCP (Gary M. Samuelson) Newsgroups: net.lang.c Subject: Re: Re: C bites (Null loop-bodies) Message-ID: <958@bunker.UUCP> Date: Tue, 27-Aug-85 11:26:09 EDT Article-I.D.: bunker.958 Posted: Tue Aug 27 11:26:09 1985 Date-Received: Thu, 29-Aug-85 22:15:43 EDT References: <165@3comvax.UUCP> <418@phri.UUCP> Distribution: net Organization: Bunker Ramo, Trumbull Ct Lines: 16 > I put null loop-bodies on a separate line like in the following > example. > > while (eatup() != '\n') > ; Putting the semi-colon on a separate line does help make it clear that the body of the loop is intentionally null, but what I like even better is: while( eatup() != '\n' ) continue; Comments? Gary Samuelson