header file: stdlib.h
char *getenv(const char *name);
header file: stdlib.h
char *getenv(const char *name);
This function returns the value from the given environment
variable.
While the function to obtain environment variables is the same
in Unix and Windows, the names and contents of the variables differ
substantially between platforms. A list of common preset
environment variables in Windows can be found here.