Move the return value information about the getenv(3) library function
under the RETURN VALUES section so it is consistent with others. Cleanup the return value text for getenv(3) a little while I am here. PR: docs/58033 MFC after: 3 days
This commit is contained in:
parent
0b0edffbbb
commit
af73aa7cce
@ -75,10 +75,6 @@ The
|
|||||||
.Fn getenv
|
.Fn getenv
|
||||||
function obtains the current value of the environment variable,
|
function obtains the current value of the environment variable,
|
||||||
.Fa name .
|
.Fa name .
|
||||||
If the variable
|
|
||||||
.Fa name
|
|
||||||
is not in the current environment,
|
|
||||||
a null pointer is returned.
|
|
||||||
.Pp
|
.Pp
|
||||||
The
|
The
|
||||||
.Fn setenv
|
.Fn setenv
|
||||||
@ -115,6 +111,16 @@ deletes all instances of the variable name pointed to by
|
|||||||
.Fa name
|
.Fa name
|
||||||
from the list.
|
from the list.
|
||||||
.Sh RETURN VALUES
|
.Sh RETURN VALUES
|
||||||
|
The
|
||||||
|
.Fn getenv
|
||||||
|
function returns the value of the environment variable as a nul terminated
|
||||||
|
string.
|
||||||
|
If the variable
|
||||||
|
.Fa name
|
||||||
|
is not in the current environment,
|
||||||
|
.Dv NULL
|
||||||
|
is returned.
|
||||||
|
.Pp
|
||||||
.Rv -std setenv putenv
|
.Rv -std setenv putenv
|
||||||
.Sh ERRORS
|
.Sh ERRORS
|
||||||
.Bl -tag -width Er
|
.Bl -tag -width Er
|
||||||
|
Loading…
Reference in New Issue
Block a user