summaryrefslogtreecommitdiffstats
path: root/env.3
diff options
context:
space:
mode:
Diffstat (limited to 'env.3')
-rw-r--r--env.331
1 files changed, 31 insertions, 0 deletions
diff --git a/env.3 b/env.3
new file mode 100644
index 0000000..53a5f89
--- /dev/null
+++ b/env.3
@@ -0,0 +1,31 @@
1.TH env 3
2.SH NAME
3env \- manage the environment
4.SH SYNTAX
5.B #include <env.h>
6
7char **\fBenviron\fP;
8
9char *\fBenv_get\fP(\fIname\fR);
10.br
11char *\fBenv_pick\fP();
12
13char *\fIname\fR;
14.SH DESCRIPTION
15The environment,
16.BR environ ,
17is a 0-terminated array of 0-terminated strings,
18called environment variables.
19Each environment variable is of the form
20.IR name\fB=\fIvalue .
21
22.B env_get
23returns the value of the first variable whose name is
24.IR name ,
25or 0 if there is no such variable.
26
27.B env_pick
28returns any variable in the environment,
29or 0 if the environment is empty.
30.SH "SEE ALSO"
31environ(7)