From 075809bebd3a385c71033f2be25c423d68f13f6b Mon Sep 17 00:00:00 2001 From: hmp Date: Tue, 6 Jul 2004 23:21:36 +0000 Subject: 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 --- lib/libc/stdlib/getenv.3 | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/libc/stdlib/getenv.3 b/lib/libc/stdlib/getenv.3 index 11922a7..fc17c68 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 -- cgit v1.1