File: env.3

package info (click to toggle)
netqmail 1.06-6.2~deb9u1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 2,440 kB
  • sloc: ansic: 14,438; makefile: 1,865; sh: 511
file content (31 lines) | stat: -rw-r--r-- 600 bytes parent folder | download | duplicates (24)
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)