|  | ||
| 
 | 
 char *getenv( char *name ) 
 char *name; /* environment variable name */ 
 
 
 
 | 
 | 
| Synopsis | #include "stdlib.h" 
 The getenv function retrieves the environment string associated with the environment variable pointed to by name . 
 | 
 | 
| Parameters | name is a null-terminated string containing the name of the environment variable. 
 | 
 | 
| Return Value | If the environment variable denoted by name exists, getenv returns a pointer to a static buffer containing the associated environment string, the contents of which should not be modified by the programmer, and which may be overwritten by a subsequent call to getenv . Otherwise, getenv returns NULL . 
 | 
 | 
| See Also | 
 | |
| 
 | 
 |