[Techtalk] environ variable in C

Devdas Bhagat devdas at dvb.homelinux.org
Sat Apr 3 11:25:40 EST 2004


On 02/04/04 19:26 -0800, Akkana Peck wrote:
<snip>
> >    while(*env) {
> 
> In a real program, it might be worth doing while (env && *env) just
> in case environ ever becomes null.  Probably shouldn't happen, but
> being safe doesn't cost much.
man 5 environ

Devdas Bhagat


More information about the Techtalk mailing list