Go to the first, previous, next, last section, table of contents.


getenv

Syntax

#include <stdlib.h>

char *getenv(const char *name);

Description

Get the setting of the environment variable name. Do not alter or free the returned value.

Return Value

The value, or NULL if that variable does not exist.

Portability

ANSI, POSIX

Example

char *term = getenv("TERM");


Go to the first, previous, next, last section, table of contents.