◄Up► ◄Contents► ◄Index► ◄Back► ──────────────────────────────────────────────────────────────────────────── Variable: environ Include: <stdlib.h> Syntax: char *environ[]; The environ variable is an array of pointers to the strings that constitute the process environment. The environment consists of one or more entries of the form: NAME=string where NAME is the name of an environment variable and <string> is the value of that variable. The string may be empty. The initial environment settings are taken from the operating-system environment at the time of program execution. The getenv and putenv routines use the environ variable to access and modify the environment table. When putenv is called to add or delete environment settings, the environment table changes size. Its location in memory may also change, depending on the program's memory requirements. The environ variable is adjusted in these cases and will always point to the correct table location.