svn commit: r282472 - head/lib/libc/stdlib
Sergey Kandaurov
pluknet at FreeBSD.org
Tue May 5 10:44:18 UTC 2015
Author: pluknet
Date: Tue May 5 10:44:17 2015
New Revision: 282472
URL: https://svnweb.freebsd.org/changeset/base/282472
Log:
Fix major copy/paste and other style errors.
Modified:
head/lib/libc/stdlib/reallocarray.3
Modified: head/lib/libc/stdlib/reallocarray.3
==============================================================================
--- head/lib/libc/stdlib/reallocarray.3 Tue May 5 10:35:29 2015 (r282471)
+++ head/lib/libc/stdlib/reallocarray.3 Tue May 5 10:44:17 2015 (r282472)
@@ -1,6 +1,5 @@
-.\"
.\" Copyright (c) 1980, 1991, 1993
-.\">----The Regents of the University of California. All rights reserved.
+.\" The Regents of the University of California. All rights reserved.
.\"
.\" This code is derived from software contributed to Berkeley by
.\" the American National Standards Committee X3, on Information
@@ -44,6 +43,9 @@
.Sh DESCRIPTION
The
.Fn reallocarray
+function is similar to the
+.Fn realloc
+function
except it operates on
.Fa nmemb
members of size
@@ -53,8 +55,9 @@ and checks for integer overflow in the c
*
.Fa size .
.Sh RETURN VALUES
+The
.Fn reallocarray
-return a pointer to the allocated space; otherwise, a
+function returns a pointer to the allocated space; otherwise, a
.Dv NULL
pointer is returned and
.Va errno
@@ -132,6 +135,8 @@ if ((newp = reallocarray(p, num, size))
.Xr realloc 3
.Sh HISTORY
The
-.Fn reallocf
+.Fn reallocarray
function first appeared in
-.Ox 5.6 .
+.Ox 5.6
+and
+.Fx 11.0 .
More information about the svn-src-all
mailing list