Environment variable doubt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
I need some help in retrieving the values of the Environment vars from my
C++ program.

For getting the values of the Environment Variables, I am using the getenv()
function.
e.g string serverName = getenv("SERVER_NAME");

However, when i do getenv("SERVER_PROTOCOL"), it strangely returns a string
"INCLUDED" whereas I am expecting something like HTTP/0.9 or or a similar
value.  Does anyone have any idea about this ?

Also, can anyone tell me how to get the list of all the environment
variables and their values.


Thanks in advance

-Ashay




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux