summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authorgjb <gjb@FreeBSD.org>2012-05-11 20:06:46 +0000
committergjb <gjb@FreeBSD.org>2012-05-11 20:06:46 +0000
commit8670397617a81b2ecea7375cbd0af3c77821459b (patch)
tree0b28f0bebde32579d2780e773f4990dfb45d3f30 /lib/libc/stdlib
parent39c22309ed9c2ffe7c028062bc1cb57b20ec6945 (diff)
downloadFreeBSD-src-8670397617a81b2ecea7375cbd0af3c77821459b.zip
FreeBSD-src-8670397617a81b2ecea7375cbd0af3c77821459b.tar.gz
General mdoc(7) and typo fixes.
PR: 167734 Submitted by: Nobuyuki Koganemaru (kogane!jp.freebsd.org) MFC after: 3 days
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/getenv.33
-rw-r--r--lib/libc/stdlib/strfmon.34
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/stdlib/getenv.3 b/lib/libc/stdlib/getenv.3
index bc87b9d..1949648 100644
--- a/lib/libc/stdlib/getenv.3
+++ b/lib/libc/stdlib/getenv.3
@@ -152,7 +152,8 @@ failed because
is a
.Dv NULL
pointer,
-.Fa string is without an
+.Fa string
+is without an
.Dq Li \&=
character or
.Dq Li \&=
diff --git a/lib/libc/stdlib/strfmon.3 b/lib/libc/stdlib/strfmon.3
index 11b8e21..7a54f22 100644
--- a/lib/libc/stdlib/strfmon.3
+++ b/lib/libc/stdlib/strfmon.3
@@ -115,14 +115,14 @@ character is written.
.El
.Sh RETURN VALUES
If the total number of resulting bytes including the terminating
-.Dv NULL
+.Dv NUL
byte is not more than
.Fa maxsize ,
.Fn strfmon
returns the number of bytes placed into the array pointed to by
.Fa s ,
not including the terminating
-.Dv NULL
+.Dv NUL
byte.
Otherwise, \-1 is returned,
the contents of the array are indeterminate,
OpenPOWER on IntegriCloud