Standard C Library Functions clearenv(3C)
NAME
clearenv - clear the environment
SYNOPSIS
#include
int clearenv(void);
DESCRIPTION
The clearenv() function clears the environment of all name-
value pairs and sets the value of the external variable environ(5) to NULL.RETURN VALUES
Upon successful completion, the clearenv() function returns
0. Otherwise, it returns a non-zero value.
ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Interface Stability | Committed ||_____________________________|_____________________________|
| MT-Level | MT-Safe |
|_____________________________|_____________________________|
SEE ALSO
getenv(3C), setenv(3C), attributes(5), environ(5)SunOS 5.11 Last change: 11 Oct 2010 1