C++ Programming/Code/Standard C Library/Functions/getenv

From Wikibooks, open books for an open world
Jump to navigation Jump to search

getenv[edit | edit source]

Syntax
#include <cstdlib>
char *getenv( const char *name );

The function getenv() returns environmental information associated with name, and is very implementation dependent. NULL is returned if no information about name is available.

Related topics
system