[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: Environment variable from within a .c

On Fri, Jan 12, 2001 at 02:29:24AM +0500, Bilal Muddassir wrote:
> Hi,
> I want to ask a couple of things.
> How would you set an environment variable from within a .c file in Linux? Is 
> the variable contained within the shell's memory space only? I am asking 
> this because if the shell isn't there, is it possible to play with 
> environment variables?

Yes. UNIX env is a process thing. It is not necessarily a shell thing.
The shell is a process, therefore it has a env.

man setenv.

> Kindly tell me a URL/online resource where I can read how to make use of the 
> GNU dev support tools like autoconf and configure and all the rest.

The .info files that come with these tools are the best source. If you're
not a Emacs user, search for HTMLized versions of these texinfo files.