style wars

Michael Davidson md at sco.COM
Fri Dec 23 04:20:34 AEST 1988


In article <14128 at oberon.USC.EDU> blarson at 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;



More information about the Comp.lang.c mailing list