> Says:
> 1) start the loop at -1.
> 2) When the loop is done,
> 2a) increment i
> 2b) test with strlen1
> 3) Back to top.
Nope
The test is performed before the body of the loop is executed. Think while loop with automatic initialisation and iteration steps thrown in.
Both these do the same thing.
for ( i = -1 ; ++i < 10 ; )
for ( i = 0 ; i < 10 ; i++ )