Line | |
---|
1 | .\" @(#)getenv.3 6.1 (Berkeley) 5/15/85
|
---|
2 | .\"
|
---|
3 | .TH GETENV 3 "May 15, 1985"
|
---|
4 | .AT 3
|
---|
5 | .SH NAME
|
---|
6 | getenv \- value for environment name
|
---|
7 | .SH SYNOPSIS
|
---|
8 | .nf
|
---|
9 | .ft B
|
---|
10 | #include <stdlib.h>
|
---|
11 |
|
---|
12 | char *getenv(const char *\fIname\fP)
|
---|
13 | .ft R
|
---|
14 | .fi
|
---|
15 | .SH DESCRIPTION
|
---|
16 | .B Getenv
|
---|
17 | searches the environment list
|
---|
18 | (see
|
---|
19 | .BR environ (7))
|
---|
20 | for a string of the form
|
---|
21 | .IB name = value
|
---|
22 | and returns a pointer to the string
|
---|
23 | .I value
|
---|
24 | if such a string is present, otherwise
|
---|
25 | .B getenv
|
---|
26 | returns the null pointer.
|
---|
27 | .SH SEE ALSO
|
---|
28 | .BR environ (7),
|
---|
29 | .BR execve (2).
|
---|
Note:
See
TracBrowser
for help on using the repository browser.