cpp/utility/program/getenv

Searches the environment list provided by the host environment (the OS), for a string that matches the C string pointed to by and returns a pointer to the C string that is associated with the matched environment list member.

Modifying the string returned by invokes undefined behavior.

Return value
Character string identifying the value of the environmental variable or null pointer if such variable is not found.