Penguin
Annotated edit history of setenv(3) version 1, including all changes. View license author blame.
Rev Author # Line
1 perry 1 SETENV
2 !!!SETENV
3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 RETURN VALUE
7 CONFORMING TO
8 SEE ALSO
9 ----
10 !!NAME
11
12
13 setenv - change or add an environment variable
14 !!SYNOPSIS
15
16
17 __#include
18 __''name''__, const char *__''value''__, int__ ''overwrite''__);
19 void unsetenv(const char *__''name''__);
20 __
21 !!DESCRIPTION
22
23
24 The __setenv()__ function adds the variable ''name''
25 to the environment with the value ''value'', if
26 ''name'' does not already exist. If ''name'' does
27 exist in the environment, then its value is changed to
28 ''value'' if ''overwrite'' is non-zero; if
29 ''overwrite'' is zero, then the value of ''name'' is
30 not changed.
31
32
33 The __unsetenv()__ function deletes the variable
34 ''name'' from the environment.
35 !!RETURN VALUE
36
37
38 The __setenv()__ function returns zero on success, or -1
39 if there was insufficient space in the
40 environment.
41 !!CONFORMING TO
42
43
44 BSD 4.3
45 !!SEE ALSO
46
47
48 getenv(3), putenv(3),
49 environ(7)
50 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.