I'm trying to translate a UNIX C program to a Windows console program. Can anyone tell me how to set an environment variable in a console program? The UNIX function is setenv, and I find a Windows version SetEnvironmentVariable, but what about for a console program?
Thanks!