summaryrefslogtreecommitdiff
path: root/env.3
blob: 53a5f89736e04b4401439624b20433921aec00d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
.TH env 3
.SH NAME
env \- manage the environment
.SH SYNTAX
.B #include <env.h>

char **\fBenviron\fP;

char *\fBenv_get\fP(\fIname\fR);
.br
char *\fBenv_pick\fP();

char *\fIname\fR;
.SH DESCRIPTION
The environment,
.BR environ ,
is a 0-terminated array of 0-terminated strings,
called environment variables.
Each environment variable is of the form
.IR name\fB=\fIvalue .

.B env_get
returns the value of the first variable whose name is
.IR name ,
or 0 if there is no such variable.

.B env_pick
returns any variable in the environment,
or 0 if the environment is empty.
.SH "SEE ALSO"
environ(7)