diff options
| author | Hiten Pandya <hmp@FreeBSD.org> | 2004-07-06 23:21:36 +0000 |
|---|---|---|
| committer | Hiten Pandya <hmp@FreeBSD.org> | 2004-07-06 23:21:36 +0000 |
| commit | af73aa7cced9f3e3cdc6340ad50f130822761194 (patch) | |
| tree | 35b58a80900b473c5e76d11dbc0094d4ee8916d1 /lib/libc | |
| parent | 0b0edffbbbf633fcad574b5ac6d9c94f42dce0a0 (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/stdlib/getenv.3 | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/libc/stdlib/getenv.3 b/lib/libc/stdlib/getenv.3 index 11922a794c76..fc17c68bd4db 100644 --- a/lib/libc/stdlib/getenv.3 +++ b/lib/libc/stdlib/getenv.3 @@ -75,10 +75,6 @@ The .Fn getenv function obtains the current value of the environment variable, .Fa name . -If the variable -.Fa name -is not in the current environment, -a null pointer is returned. .Pp The .Fn setenv @@ -115,6 +111,16 @@ deletes all instances of the variable name pointed to by .Fa name from the list. .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 .Sh ERRORS .Bl -tag -width Er |
