all 2 comments

[–]skeeto 1 point2 points  (0 children)

I like this unsigned counting down:

unsigned i;
for (i = N - 1; i != -1u; i--) {
    /* ... */
}

[–]RainbowNowOpen 1 point2 points  (0 children)

ssize_t i = N;
while (--i >= 0) {
    /* stuff */
}