Re: [hackers] [sbase] Audit printenv(1) || FRIGN

From: FRIGN <dev_AT_frign.de>
Date: Sat, 28 Feb 2015 22:36:24 +0100

On Sat, 28 Feb 2015 13:25:09 -0800
Evan Gates <evan.gates_AT_gmail.com> wrote:

> The arg loops can simply be for (; *argv; argv++) as the standard
> guarantees argv[argc] is NULL.

Hey Evan,

I discussed this with stateless and we came to the conclusion that
the argc-approach is more idiomatic.
I personally favor for-loops with guaranteed break-conditions, but
you're right about the standard.

Cheers

FRIGN

-- 
FRIGN <dev_AT_frign.de>
Received on Sat Feb 28 2015 - 22:36:24 CET

This archive was generated by hypermail 2.3.0 : Sat Feb 28 2015 - 22:48:08 CET