Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Reference > C

clearenv(3C)

HP-UX 11i Version 3: February 2007
» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

NAME

clearenv — clear the process environment

SYNOPSIS

#include <stdlib.h>

int clearenv(void);

DESCRIPTION

clearenv() clears the process environment. No environment variables are defined immediately after a call to clearenv().

clearenv() modifies the value of the pointer environ. This means that copies of that pointer are invalid after a call to clearenv().

RETURN VALUE

Upon successful completion, clearenv() returns zero; otherwise, it returns -1 and sets errno to indicate the error.

ERRORS

clearenv() fails if the following condition is encountered:

[ENOMEM]

Failed to free or reallocate memory for the process environment.

STANDARDS CONFORMANCE

clearenv(): AES

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-2007 Hewlett-Packard Development Company, L.P.