osf1 man page for clearenv

Query: clearenv

OS: osf1

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

clearenv(3)						     Library Functions Manual						       clearenv(3)

NAME
clearenv - Clears the process environment
LIBRARY
Standard C Library (libc.a)
SYNOPSIS
#include <stdlib.h> int clearenv ( void );
DESCRIPTION
The clearenv() function clears the process environment. No environment variables are defined immediately after a call to clearenv(). The clearenv() function sets the value of the external variable environ to NULL.
NOTES
Trial use
RETURN VALUES
Upon successful completion, the clearenv() function returns 0 (zero). Otherwise, it returns -1. If environ has been modified by anything other than the putenv() , getenv() , or clearenv() functions, then clearenv() will return an error and the process environment will remain unchanged.
RELATED INFORMATION
Functions: exec(2), getenv(3), putenv(3) delim off clearenv(3)
Related Man Pages
clearenv(3) - plan9
clearenv(3) - mojave
clearenv(3) - v7
clearenv(3) - freebsd
clearenv(3) - bsd
Similar Topics in the Unix Linux Community
PHP Write Man Pages to MySQL DB
Denial Of Service Attack Update