Skip to content

getenv : look up environment variable

#include <stdlib.h>
char *getenv(const char *name);
```### Description
getenv searches the list of environment variable names and values (using the global pointer `char **environ') for a variable whose name matches the string at name. If a variable name matches, getenv returns a pointer to the associated value.### Returns
A pointer to the (string) value of the environment variable, or NULL if there is no such environment variable.
---
**Authoritative source**: BUSMASTER DITA help source `getenv.dita`, compiled into `BUSMASTER.CHM` with the application.