10
The signature for the main function in C\C++ can include 3 arguments:
main( int argc, char *argv[ ], char *envp[ ] )
The third is the environment variables.
I'm compiling a library under VS10 and therefor I have no main(). How can I get the environment variables in exactly the same type as is in char *envp[]? I rather not use .NET as to decrease dependencies and perhaps one day be open to portability.