From 89e52e28cf191fa186fce7cc879fc6bdf164884f Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 23 Mar 1999 21:07:58 +0000 Subject: Clarify realloc return value --- lib/libc/stdlib/malloc.3 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/libc/stdlib/malloc.3 b/lib/libc/stdlib/malloc.3 index f35c86ac48c..9edff6709c6 100644 --- a/lib/libc/stdlib/malloc.3 +++ b/lib/libc/stdlib/malloc.3 @@ -33,7 +33,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: malloc.3,v 1.10 1998/11/17 23:41:43 aaron Exp $ +.\" $OpenBSD: malloc.3,v 1.11 1999/03/23 21:07:57 millert Exp $ .\" .Dd August 27, 1996 .Dt MALLOC 3 @@ -101,8 +101,9 @@ The .Fn realloc function changes the size of the object pointed to by .Fa ptr -to the size specified by -.Fa size . +to +.Fa size +bytes and returns a pointer to the (possibly moved) object. The contents of the object are unchanged up to the lesser of the new and old sizes. If the new size is larger, the value of the newly allocated portion -- cgit v1.2.3