> [...] If the condition is omitted, it is
> assumed to be TRUE.
This is the part I'm trying to find in the
standard. I'd never seen
someone write an infinite loop by *omitting* the condition on a for
loop. I've seen it written as while (1); or while (1) {}.
In the 1975 _C Reference Manual_ it looks like this:
Any or all of the expressions may be dropped. A missing expression-2
makes the implied while clause equivalent to "while( 1 )"; other
missing expressions are simply dropped from the expansion above.
C99 phrases it, in 6.8.5.3, as:
An omitted expression-2 is replaced by a nonzero constant.
--
Kevin Schoedel <schoedel at kw.igs.net> VA3TCS