#include <stdlib.h> int setenv(const char *name, const char *value, int rewrite);
This function sets the environment variable name to value. If rewrite is set, then this function will replace any existing value. If it is not set, it will only put the variable into the environment if that variable isn't already defined.
Zero on success, -1 on failure.
not ANSI, not POSIX
Go to the first, previous, next, last section, table of contents.