This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: Environment variable doubt
- From: "Ashay Shende" <ashende at cisco dot com>
- To: "Gcc-Help" <gcc-help at gcc dot gnu dot org>
- Date: Mon, 29 Sep 2003 15:08:00 +0530
- Subject: RE: Environment variable doubt
- Reply-to: <ashende at cisco dot com>
Hi Bharati,
Could you give some more details about it.... like return type etc.
Anyways, i just tried : char* x = environ();
it gave me an error saying environ() cannot be used as a function.
-----Original Message-----
From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org]On
Behalf Of Bharathi S
Sent: Monday, September 29, 2003 11:05 AM
To: Ashay Shende
Cc: Gcc-Help
Subject: Re: Environment variable doubt
On Mon, 29 Sep 2003, Ashay Shende wrote:
> Also, can anyone tell me how to get the list of all the environment
> variables and their values.
environ() -- I never used it :)
HTH :)
--
Bharathi S, IndLinuX Team, (__)
DON Lab, TeNeT Group, oo )
IIT-Madras, Chennai-INDIA. (_/\
Known is DROP, Unknown is OCEAN.