From 472fe40c0085d058c485edf1c329e1b4ee68e9a3 Mon Sep 17 00:00:00 2001 From: keramida Date: Sat, 24 Nov 2001 03:05:40 +0000 Subject: Be more explicit about the fact that realloc() might return a different pointer than the one passed to it. PR: docs/31925 Submitted by: Andrew --- lib/libc/stdlib/malloc.3 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/libc/stdlib') diff --git a/lib/libc/stdlib/malloc.3 b/lib/libc/stdlib/malloc.3 index a8690c7..2ce7e0f 100644 --- a/lib/libc/stdlib/malloc.3 +++ b/lib/libc/stdlib/malloc.3 @@ -117,6 +117,10 @@ is returned and the memory referenced by .Fa ptr is valid and unchanged. +If memory can be allocated a pointer to the newly allocated portion of +the memory is returned. Note that this may be different from the value +passed as +.Fa ptr . If .Fa ptr is -- cgit v1.1