Utility Functions and C Language Reference > C Language Reference > Alphabetical List of Functions > getenv

getenv

Example: getenv Process Control Functions

Gets the definition of an environment variable.

char *getenv( const char *varname ); 

varname The name of the environment variable whose definition is returned.

Return Values

Gets the value of the specified environment variable or NULL if that environment variable does not exist.

For getenv details, refer to your C language documentation.