The putenv() function makes the value of the environment variable name equal to value by altering an existing variable or creating
a new one. In either case, the string pointed to by string becomes part of the environment, so altering the string will change the environment.
The string argument points to a string of the form name=value. The space used by string
is no longer used once a new string-defining name is passed to putenv().
The putenv() function uses malloc(3C) to enlarge the environment.
After putenv() is called, environment variables are not in alphabetical order.
|