Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C > Re: How do I ex...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 10 Topic 26115 of 27343
Post > Topic >>

Re: How do I ex****t a environmental variable to a C program?

by dj3vande@[EMAIL PROTECTED] May 9, 2008 at 05:34 PM

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
 




 10 Posts in Topic:
How do I export a environmental variable to a C program?
iavian <vijay@[EMAIL P  2008-05-09 10:26:48 
Re: How do I export a environmental variable to a C program?
Antoninus Twink <nospa  2008-05-09 19:37:30 
Re: How do I export a environmental variable to a C program?
dj3vande@[EMAIL PROTECTED  2008-05-09 17:34:38 
Re: How do I export a environmental variable to a C program?
roberson@[EMAIL PROTECTED  2008-05-09 17:44:55 
Re: How do I export a environmental variable to a C program?
jt@[EMAIL PROTECTED] (Je  2008-05-09 17:45:19 
Re: How do I export a environmental variable to a C program?
Keith Thompson <kst-u@  2008-05-09 11:52:25 
Re: How do I export a environmental variable to a C program?
iavian <vijay@[EMAIL P  2008-05-10 18:22:13 
Re: How do I export a environmental variable to a C program?
Keith Thompson <kst-u@  2008-05-10 20:25:39 
Re: How do I export a environmental variable to a C program?
CBFalconer <cbfalconer  2008-05-10 22:53:25 
Re: How do I export a environmental variable to a C program?
Jack Klein <jackklein@  2008-05-10 22:39:04 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Sep 6 22:00:41 CDT 2008.