1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18

name = value


where name is the name of the environment variable and
value is its value

  • For example, if the value of the HOME variable is
    /usr/prof/tony, then itsenvp array entry would be


envp[i] = "HOME=/usr/prof/tony"

  • *We need to search through this array if we want to find
    the value of a particular environment variable
  • *The startup code places the values of argc, argv, and
    envp on the stack and then transfers control to the main()
    procedure

March 3, 1998

Page 11

C201/TAM