summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
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