summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/reallocarray.3
diff options
context:
space:
mode:
authorwiz <wiz@NetBSD.org>2015-02-06 08:37:39 +0000
committerwiz <wiz@NetBSD.org>2015-02-06 08:37:39 +0000
commit7bf38fa40e1eb90620f458cd953530b551ec557e (patch)
treeb7a3c5be23ac8b3df73d08b335e88ed8ba4b1352 /lib/libc/stdlib/reallocarray.3
parentfe26ea7a7a097749b8db45e67f5f5bad304c06d5 (diff)
Remove trailing whitespace.
Diffstat (limited to 'lib/libc/stdlib/reallocarray.3')
-rw-r--r--lib/libc/stdlib/reallocarray.310
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/stdlib/reallocarray.3 b/lib/libc/stdlib/reallocarray.3
index e570abb56b9..acd331ab293 100644
--- a/lib/libc/stdlib/reallocarray.3
+++ b/lib/libc/stdlib/reallocarray.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: reallocarray.3,v 1.2 2015/02/05 22:05:33 christos Exp $
+.\" $NetBSD: reallocarray.3,v 1.3 2015/02/06 08:37:39 wiz Exp $
.\"
.Dd February 5, 2015
.Dt REALLOCARRAY 3
@@ -30,7 +30,7 @@ and making sure that overflow does not happen in the multiplication of
.Dq "nmemb * size" .
.Pp
This function is provided for source compatibility with
-.Ox
+.Ox
and
its use is discouraged in preference to
.Xr reallocarr 3 .
@@ -50,7 +50,7 @@ or preserving the value from
.Sh SEE ALSO
.Xr malloc 3 ,
.Xr realloc 3 ,
-.Xr reallocarr 3
+.Xr reallocarr 3
.Sh STANDARDS
.Fn reallocarray
is an
@@ -78,14 +78,14 @@ function was designed to facilitate safe,
robust programming and overcome the shortcomings of the
.Xr malloc 3
and
-.Xr realloc 3
+.Xr realloc 3
functions by centralizing the overflow check in the multiplication of
.Fa nmemb
and
.Fa size .
.Pp
There are still portability issues (it does not solve
-the
+the
.Dv 0
sized allocation return ambiguity in the C standard: does
.Fn reallocarray