clearenv - clear the environment
#include <stdlib.h> int clearenv(void);
The clearenv() function clears the environment of all name-value pairs and sets the value of the external variable environ(7) to NULL.
Upon successful completion, the clearenv() function returns 0. Otherwise, it returns a non-zero value.
See attributes(7) for descriptions of the following attributes:
|