User Tools

Site Tools


solaris:clearenv.3c

clearenv


NAME

clearenv - clear the environment

SYNOPSIS

#include <stdlib.h>

int clearenv(void);

DESCRIPTION

The clearenv() function clears the environment of all name-value pairs and sets the value of the external variable environ(7) to NULL.

RETURN VALUES

Upon successful completion, the clearenv() function returns 0. Otherwise, it returns a non-zero value.

ATTRIBUTES

See attributes(7) for descriptions of the following attributes:

SEE ALSO

getenv(3C), setenv(3C), attributes(7), environ(7)


solaris/clearenv.3c.txt · Last modified: 2023/07/19 08:58 by A User Not Logged in