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"
Printable View
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.Quote:
Originally Posted by Harman
thanks, as you can guess i am very new to c.