Path: utzoo!attcan!uunet!sco!md From: md@sco.COM (Michael Davidson) Newsgroups: comp.lang.c Subject: Re: style wars Summary: use continue as null loop body Keywords: style Message-ID: <655@fiasco> Date: 22 Dec 88 18:20:34 GMT References: <14128@oberon.USC.EDU> Reply-To: md@sco.COM (Michael Davidson) Organization: The Santa Cruz Operation, Inc. Lines: 9 In article <14128@oberon.USC.EDU> blarson@skat.usc.edu (Bob Larson) writes: > for(p = FIRST; p->next != NULL; p = p->next) {} >uses a special two character sequence to denote the null statement, >and takes only a single line. I much prefer to use continue as the null statement in the context of a loop body, ie: for (p = FIRST; p->next != NULL; p = p->next) continue;