Name
getenv function — Gets environment variable
Synopsis
char* getenv(const char* name)
The getenv
function obtains
the value of an environment variable. The environment is a
system-defined list of name/value pairs. The getenv
function searches the environment
for name
and returns the
associated value. The getenv
function returns a null pointer if the specified name is not
found.
Get C++ In a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.