summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authorwiz <wiz@NetBSD.org>2005-09-26 10:54:46 +0000
committerwiz <wiz@NetBSD.org>2005-09-26 10:54:46 +0000
commit72a37764e092ec25f7090f02feb58c6d48bfbc4c (patch)
tree9644731cc5a09fea8164355dcce29c53b4c4b291 /lib/libc/stdlib
parent7f4f9fe0442f5e73480d786862091eec93571c69 (diff)
Punctuation nits; grammar fix.
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/getenv.317
1 files changed, 7 insertions, 10 deletions
diff --git a/lib/libc/stdlib/getenv.3 b/lib/libc/stdlib/getenv.3
index cbd1cf0772a..80e68f8d437 100644
--- a/lib/libc/stdlib/getenv.3
+++ b/lib/libc/stdlib/getenv.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: getenv.3,v 1.18 2005/09/25 20:08:01 christos Exp $
+.\" $NetBSD: getenv.3,v 1.19 2005/09/26 10:56:54 wiz Exp $
.\"
.\" Copyright (c) 1988, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -75,30 +75,27 @@ except for
.Pp
The
.Fn getenv
-function obtains the current value of the environment variable,
+function obtains the current value of the environment variable
.Ar name .
If the variable
.Ar name
-is not in the current environment,
-a
+is not in the current environment, a
.Dv NULL
pointer is returned.
.Pp
The
.Fn getenv_r
-function obtains the current value of the environment variable,
+function obtains the current value of the environment variable
.Fa name
-and copies it in
+and copies it to
.Fa buf .
-If
+If
.Fa name
is not in the current environment, or the string length of the value of
.Fa name
is longer than
.Fa len
-characters, then
-.Dv -1
-is returned and
+characters, then \-1 is returned and
.Va errno
is set to indicate the error.
.Pp