Standards / Extensions | C or C++ | Dependencies |
---|---|---|
Single UNIX Specification, version 3 |
both | z/OS V1R7 |
#define _UNIX03_SOURCE
#include <stdlib.h>
int unsetenv(const char *name);
unsetenv() deletes an environment variable from the environment of the calling process. The name argument points to a string, which is the name of the variable to be removed. If the string pointed to by name contains an '=' character, unsetenv() will fail. If the named variable does not exist in the current environment, the environment will not be changed and unsetenv() will succeed.