Some interesting novice questions from a novice guy

Doug Gwyn gwyn at smoke.brl.mil
Wed Nov 7 19:56:46 AEST 1990


In article <L3O6IN7 at xds13.ferranti.com> peter at ficc.ferranti.com (Peter da Silva) writes:
>I saw this discussion. Doesn't make sense. Doesn't anyone use:
>	while(*foo++)
>		continue;
>anymore?

Nope.  I use
	while ( *foo++ != '\0' )	/* or != NULL, depending */
		;
I figure that if anybody doesn't immediately understand this they shouldn't
be messing with it in the first place.



More information about the Comp.lang.c mailing list