How do I get the list of all environment variables in C and/or C++?
I know that getenv can be used to read an environment variable, but how do I list th
getenv
If you're running on a Windows operating system then you can also call GetEnvironmentStrings() which returns a block of null terminated strings.
GetEnvironmentStrings()