News for hackers. Stuff that matters.
Re:How can C Programs be so Reliable? by cbs on Thursday September 22, 2011 @11:14AM (#3026329)
>You don't need to do wacky things...

A function call in a for loop's conditional doesn't fit your definition of wacky?

Re:How can C Programs be so Reliable? by qntm on Thursday September 22, 2011 @11:48AM (#3026445)
A function call in a for loop's conditional is practically C best practice. K&R do it on almost every page.
Re:How can C Programs be so Reliable? by Locke1689 on Thursday September 22, 2011 @12:15PM (#3026560)
They usually only do it for builtins (e.g., strlen) and const functions, which makes this example a lot safer.
Re:How can C Programs be so Reliable? by gsg on Thursday September 22, 2011 @11:55AM (#3026478)
A bit suspicious, maybe? I was trying to suggest the unsigned issue without actually spelling it out, not anything to do with side effects.

I probably should have used sizeof, even though that doesn't make sense there.