From 09a12d75cf5a571272ecda50cd7ee39628a73666 Mon Sep 17 00:00:00 2001 From: Alfred Perlstein Date: Wed, 18 Aug 2004 21:13:15 +0000 Subject: Clarify that realloc and reallocf may move the memory allocation. --- lib/libc/stdlib/malloc.3 | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'lib/libc/stdlib/malloc.3') diff --git a/lib/libc/stdlib/malloc.3 b/lib/libc/stdlib/malloc.3 index d1f081b908de..c32827dd6925 100644 --- a/lib/libc/stdlib/malloc.3 +++ b/lib/libc/stdlib/malloc.3 @@ -120,9 +120,13 @@ is valid and unchanged. If memory can be allocated, the memory referenced by .Fa ptr is freed and a pointer to the newly allocated memory is returned. -Note that this may be different from the value -passed as -.Fa ptr . +Note that the return value may differ from the +.Fa ptr +argument, that is +.Fn realloc +and +.Fn reallocf +may move the memory. If .Fa ptr is -- cgit v1.2.3