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
LPTCH WINAPI GetEnvironmentStrings(void);
http://msdn.microsoft.com/en-us/library/ms683187%28VS.85%29.aspx
EDIT: only works on windows.