Re: environment question



Thanks guys. That did it.
It seems that "extern char **environ;" was in stdlib.h and is no longer
there so you have to code it yourself.

On Mon, 4 Oct 1999, Bertrand Guiheneuf wrote:

> this works prefectly for me:
> 
> extern char **environ;
> 
> int i;
> 
> main (int argc, char **argv) { 
>   while (environ[i]) {
>     printf("%s\n", environ[i]); 
>     i++;
>   }
> }
> 
> Bertrand
> 
> 
> -- 
> To unsubscribe: mail gnome-devel-list-request@gnome.org with "unsubscribe"
> as the Subject.
> 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]