summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2021-08-31 03:26:46 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2021-08-31 04:02:29 +0200
commite186261405cad58a71c44df7be8f9da02a9d6eff (patch)
tree8c6057f9a1961a36f298c78cdb02e472c0e82db3
parentf1d01de4c8c8151b19cdccebfe923e4592f9066c (diff)
malloc.3: Clarify that realloc() may move the memory block
Make it clearer, early in the discussion, that realloc() may move the block. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man3/malloc.33
1 files changed, 2 insertions, 1 deletions
diff --git a/man3/malloc.3 b/man3/malloc.3
index 7c21d6fc5..19b7fc25a 100644
--- a/man3/malloc.3
+++ b/man3/malloc.3
@@ -163,7 +163,8 @@ is done.
.SS reallocarray()
The
.BR reallocarray ()
-function changes the size of the memory block pointed to by
+function changes the size of (and possibly moves)
+the memory block pointed to by
.I ptr
to be large enough for an array of
.I nmemb