mirror of https://github.com/mkerrisk/man-pages
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>
This commit is contained in:
parent
f1d01de4c8
commit
e186261405
|
@ -163,7 +163,8 @@ is done.
|
||||||
.SS reallocarray()
|
.SS reallocarray()
|
||||||
The
|
The
|
||||||
.BR reallocarray ()
|
.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
|
.I ptr
|
||||||
to be large enough for an array of
|
to be large enough for an array of
|
||||||
.I nmemb
|
.I nmemb
|
||||||
|
|
Loading…
Reference in New Issue