char *getenv(const char *name);

Searches for the environment string pointed to by name and returns the associated value to the string. This returned value should not be written to.

If the string is found, then a pointer to the string’s associated value is returned. If the string is not found, then a null pointer is returned.