In article
<5eca7cf1-8080-4625-b2c1-383808d530b7@[EMAIL PROTECTED]
>,
iavian <vijay@[EMAIL PROTECTED]
> wrote:
>Hi all ,
>
>I want to set a env variable in a C program? . Not through shell env
>variables. Any help?
How an environment variable gets set is beyond the scope of the C
language.
They're typically assigned through an OS-defined mechanism when the
process is created. A newsgroup whose scope includes how to start
processes on your OS may be able to provide more specific guidance.
Many C implementations also provide extensions that allow environment
variables to be set from within the program. Your implementation's
do***entation may shed some light on that.
dave
--
Dave Vandervies dj3vande at eskimo dot com
He'll be buried face down, nine edge first. Unlike most people of whom
that is said, in his case, it's a compliment.
--Richard Bos, on John Backus, in comp.lang.c


|