Unix to Windows Porting Dictionary for HPC

RSS

Links

Function List

getenv


Unix

header file: stdlib.h

char *getenv(const char *name);

Windows

header file: stdlib.h

char *getenv(const char *name);

Purpose

This function returns the value from the given environment variable.

Discussion

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.

blog comments powered by Disqus
Valid HTML 4.01 Transitional Valid CSS!