clearenv(3C)clearenv(3C)NAMEclearenv - clear the process environment
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
Upon successful completion, returns zero; otherwise, it returns −1 and
sets to indicate the error.
fails if the following condition is encountered:
[ENOMEM] Failed to free or reallocate memory for the
SEE ALSOenviron(5), getenv(3C), putenv(3C), thread_safety(5), <stdlib.h>.