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

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

getenv[edit]

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