Commit | Line | Data |
---|---|---|
e6817382 BJ |
1 | .TH GETENV 3 |
2 | .SH NAME | |
3 | getenv \- value for environment name | |
4 | .SH SYNOPSIS | |
5 | .B char *getenv(name) | |
6 | .br | |
7 | .B char *name; | |
8 | .SH DESCRIPTION | |
9 | .I Getenv | |
10 | .a | |
11 | searches the environment list | |
12 | (see | |
13 | .IR environ (5)) | |
14 | for a string of the form | |
15 | .IB name = value | |
16 | and returns | |
17 | .I value | |
18 | if such a string is present, otherwise 0 (NULL). | |
19 | .SH SEE ALSO | |
20 | environ(5), exec(2) |