Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

environment variables

Status
Not open for further replies.

jimberger

Programmer
Jul 5, 2001
222
GB
hi all,

Is they anyway in C in which i take the value of a environment variables set by a webserver and store it in a C varibale. For example REMOTE_USER is a environment varibale set by an apache webserver - how do i take the value of this varibale and store it in my defined varibale - in perl it is $var = $ENV{'Remote_user'}. i dont think you can do this in C but has anyone any ideas?

jim
 
look at the getenv and setenv function.
Disclaimer:
Beware: Studies have shown that research causes cancer in lab rats.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top