summaryrefslogtreecommitdiff
path: root/static/unix-v10/man3/getenv.3
blob: 02ca41e0a8b8dd74ea1d34ae2830e7fad92099c8 (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
.TH GETENV 3
.CT 2 data_man
.SH NAME
getenv \(mi value for environment name
.SH SYNOPSIS
.nf
.B char *getenv(name)
.B char *name;
.fi
.SH DESCRIPTION
.I Getenv
searches the environment list
(see
.IR environ (5))
for a string starting with
\fIname\fL=\fR.
If no such a string is found, 0
is returned.
Otherwise,
the address of the character following the
.L =
is returned.
.SH SEE ALSO
.IR printenv (1),
.IR environ (5), 
.IR exec (2)
.SH BUGS
.I Getenv
ignores shell functions; see 
.IR sh (1).