aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--man3/malloc.39
1 files changed, 6 insertions, 3 deletions
diff --git a/man3/malloc.3 b/man3/malloc.3
index c3b688ab31..e0f5250ff7 100644
--- a/man3/malloc.3
+++ b/man3/malloc.3
@@ -216,9 +216,12 @@ function returns no value.
The
.BR realloc ()
function returns a pointer to the newly allocated memory, which is suitably
-aligned for any built-in type and may be different from
-.IR ptr ,
-or NULL if the request fails.
+aligned for any built-in type, or NULL if the request failed.
+The pointer may be the same as
+.IR ptr
+if the allocation was not moved (e.g. there was room to expand the allocation in-place), or different from
+.IR ptr
+if the allocation was moved to a new address.
If
.I size
was equal to 0, either NULL or a pointer suitable to be passed to