Re: environment question
- From: bob cs csoft net
- To: Bertrand Guiheneuf <Bertrand Guiheneuf inria fr>
- cc: gnome-devel-list gnome org, recipient list not shown: ;
- Subject: Re: environment question
- Date: Mon, 4 Oct 1999 01:58:49 -0500 (CDT)
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]