Hi,
> What does this loop in main?
>
> for (wrk = environ; *wrk != NULL; wrk++) {
> (void) envlist_setenv(envlist, *wrk);
> }
You can check envlist.[ch] first. I think what the loop does is copying host
environ (user environment. HOME, SHELL, PATH...etc) to struct envlist
(envli
On Tue, Jan 17, 2012 at 09:54:36PM +0100, Davide wrote:
>
> What does this loop in main?
>
> for (wrk = environ; *wrk != NULL; wrk++) {
> (void) envlist_setenv(envlist, *wrk);
> }
Seems the return value (error code) of envlist_setenv is ignored here...
--
Wei-Ren Chen (陳韋任)
Co