Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Some more setenv(3) update



On Mon, Oct 11, 2010 at 11:01:30PM +0000, Christos Zoulas wrote:
> You could move the loop:
> 
>        for (cc = name; *cc && *cc != '='; ++cc)        /* no `=' in name */
>                continue;

You could also use the more concise strcspn.

Joerg


Home | Main Index | Thread Index | Old Index