[Info-vax] decrementing & for loops in C

Bob Eager rde42 at spamcop.net
Thu Jan 8 08:49:54 EST 2009


On Thu, 8 Jan 2009 13:27:20 UTC, vaxinf at chemie.uni-konstanz.de wrote:

> OK!
>  
> This works and is a better style than i !=0:
>  
>     for (i = n; i >= 0; i--) {

Oh, I agree; I was just trying to stay close to the original. 

But defensive programming is always better, assuming i isn't unsigned!

-- 
Bob Eager




More information about the Info-vax mailing list