Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 May 2015 10:44:18 +0000 (UTC)
From:      Sergey Kandaurov <pluknet@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r282472 - head/lib/libc/stdlib
Message-ID:  <201505051044.t45AiIpL004336@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 .



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505051044.t45AiIpL004336>