| Linux / Unix Command: putenv |
NAME
putenv - change or add an environment variableSYNOPSIS
#include <stdlib.h> int putenv(char *string);
DESCRIPTION
The putenv() function adds or changes the value of environment variables. The argument string is of the form name=value. If name does not already exist in the environment, then string is added to the environment. If name does exist, then the value of name in the environment is changed to value. The string pointed to by string becomes part of the environment, so altering the string changes the environment.RETURN VALUE
The putenv() function returns zero on success, or -1 if an error occurs.ERRORS
- ENOMEM
- Insufficient space to allocate new environment.
SEE ALSO
getenv(3), setenv(3), clearenv(3), unsetenv(3), environ(5)
Important: Use the man command (% man) to see how a command is used on your particular computer.

