qc.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
environ
                                             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.