Sets the value of an environment variable.
#include <stdlib.h> int setenv ( const char *name, const char *value, int rewrite);
(IN) Points to the name of an environment variable.
(IN) Points to a string that is the value to assign to the environment variable. If the string is "", this is the same as calling unsetenv.
(IN) Indicates whether this new value should replace the existing value.
If successful, returns 0. Otherwise, returns -1, leaves the environment unchanged, and sets errno to one of the following:
If the environment variable already exists and the value of the rewrite parameter is zero, the setenv function returns -1 and errno is set to EEXIST.