summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2004-08-18 21:13:15 +0000
committeralfred <alfred@FreeBSD.org>2004-08-18 21:13:15 +0000
commit4eb39ec016214e41998209a2e636fee0d9c3176e (patch)
tree78a4e381d7074d0391b999df4502a06a716a504b /lib/libc
parent89428b4ca73cfe5166b33b0a1ba52991f073cdc4 (diff)
downloadFreeBSD-src-4eb39ec016214e41998209a2e636fee0d9c3176e.zip
FreeBSD-src-4eb39ec016214e41998209a2e636fee0d9c3176e.tar.gz
Clarify that realloc and reallocf may move the memory allocation.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/stdlib/malloc.310
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/libc/stdlib/malloc.3 b/lib/libc/stdlib/malloc.3
index d1f081b..c32827d 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
OpenPOWER on IntegriCloud