*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> clearenv (3)              
Title
Content
Arch
Section
 

clearenv(3)

Contents


NAME    [Toc]    [Back]

       clearenv - Clears the process environment

SYNOPSIS    [Toc]    [Back]

       #include <stdlib.h>

       int clearenv(
               void );

LIBRARY    [Toc]    [Back]

       Standard C Library (libc)

DESCRIPTION    [Toc]    [Back]

       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    [Toc]    [Back]

       Trial use

RETURN VALUES    [Toc]    [Back]

       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.

SEE ALSO    [Toc]    [Back]

      
      
       Functions: exec(2), getenv(3), putenv(3)



                                                      clearenv(3)
[ Back ]
 Similar pages
Name OS Title
pxfclearenv IRIX Clears all environment variables
uswitch Tru64 Get or set compatibility environment specific behavior for a calling process through the uswitch val...
env IRIX set environment for command execution, print environment
clri Tru64 Clears i-nodes
DXmSvnClearSelections Tru64 Clears all selections.
acl_clear_perm Tru64 Clears a set of permissions in an ACL entry
clear Tru64 Clears terminal screen
DXmSvnClearHighlighting Tru64 Removes (clears) all highlighting from the entries.
DXmSvnClearSelection Tru64 Clears (cancels) the selection of a specified entry.
clear_wait Tru64 General: Clears the wait condition
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service