Remove an environment variable.
#include <stdlib.h> int unsetenv(const char *name);
name
value
overwrite
The unsetenv function shall remove 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. The named argument shall not contain an '=' character. If the named variable does not exist in the current environment, the environment shall be unchanged and the function is considered to have completed successfully.
errno is set as follows:
EINVAL
| Versions | Defined in | Include | Link to |
|---|---|---|---|
| INtime 6.0 | intime/rt/include/stdlib.h | stdlib.h | clib.lib |