Signup
Search Linux manpages For:  

unsetenv(3) -- Linux man page

 

NAME

setenv - change or add an environment variable  

SYNOPSIS

#include <stdlib.h>

int setenv(const char *name, const char *value, int overwrite);

void unsetenv(const char *name);
 

DESCRIPTION

The setenv() function adds the variable name to the environment with the value value, if name does not already exist. If name does exist in the environment, then its value is changed to value if overwrite is non-zero; if overwrite is zero, then the value of name is not changed.

The unsetenv() function deletes the variable name from the environment.  

RETURN VALUE

The setenv() function returns zero on success, or -1 if there was insufficient space in the environment.  

CONFORMING TO

BSD 4.3  

SEE ALSO

clearenv(3), getenv(3), putenv(3), environ(5)


 
LINUX MAN PAGES
Man1 -- User Commands (Intro)
Man2 -- System Calls (Intro)
Man3 -- Library Functions (Intro)
Man4 -- Special Files (Intro)
Man5 -- File Formats (Intro)
Man6 -- Games (Intro)
Man7 -- Miscellaneous (Intro)
Man8 -- Administration (Intro)
Mann -- TCL Functions (not available)


WEB HOSTING SHOWCASE




 
Cheap Web HostingBudget Web HostingEcommerce Web Hosting
Link to UsLink ExchangeAdvertisePrivacy PolicyTerms Of ServiceAbout UsContact UsSitemap
Copyright © 2006 - 2012 Broadband Media, Inc. All rights reserved.