[Previous] [Contents] [Index] [Next]

unsetenv()

Remove an environment variable

Synopsis:

#include <stdlib.h>

void unsetenv( const char* name );

Arguments:

name
The name of the environment variable that you want to delete.

Library:

libc

Description:

The unsetenv() function removes the environment variable named name from the process's environment.

Classification:

POSIX 1003.1a

Safety:
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes

Caveats:

The unsetenv() function manipulates the environment pointed to by the global environ variable.

See also:

clearenv(), getenv(), putenv(), setenv()


[Previous] [Contents] [Index] [Next]