File: env.3

package info (click to toggle)
qmail 1.01-5
  • links: PTS
  • area: non-free
  • in suites: hamm
  • size: 2,188 kB
  • ctags: 1,711
  • sloc: ansic: 13,993; makefile: 1,914; perl: 448; sh: 377
file content (31 lines) | stat: -rw-r--r-- 600 bytes parent folder | download | duplicates (23)
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)