On a windows machine in command prompt when i type "set" i get a list of environment variables. How do i access these from a c program. I am looking for the variable called "USERPROFILE"
This is a discussion on how do i get the environment variable within the C Programming forums, part of the General Programming Boards category; On a windows machine in command prompt when i type "set" i get a list of environment variables. How do ...
On a windows machine in command prompt when i type "set" i get a list of environment variables. How do i access these from a c program. I am looking for the variable called "USERPROFILE"
There is a function called getenv you should look into.Originally Posted by Harman
I used to be an adventurer like you... then I took an arrow to the knee.
thanks, as you can guess i am very new to c.