Namespaces
Variants
Views
Actions

getenv

From cppreference.com
< c‎ | program
Revision as of 18:40, 31 May 2013 by P12bot (Talk | contribs)

Defined in header <stdlib.h>
const char *getenv( const char *env_var );

Searches for an environmental variable with name env_var in the host-specified environment list and returns information associated with it. The set of environmental variables and methods of altering it are implementation-defined.

Contents

Parameters

env_var - null-terminated character string identifying the name of the environmental variable to look for

Return value

character string identifying the value of the environmental variable or NULL if such variable is not found.

Example

See also