clearenv(3C)clearenv(3C)NAMEclearenv - clear the process environment
SYNOPSISDESCRIPTION
clears the process environment. No environment variables are defined
immediately after a call to
modifies the value of the pointer environ. This means that copies of
that pointer are invalid after a call to
RETURN VALUE
Upon successful completion, returns zero; otherwise, it returns −1 and
sets to indicate the error.
ERRORS
fails if the following condition is encountered:
[ENOMEM] Failed to free or reallocate memory for the
process environment.
SEE ALSOenviron(5), getenv(3C), putenv(3C), thread_safety(5), <stdlib.h>.
STANDARDS CONFORMANCEclearenv(3C)