diff options
author | alfred <alfred@FreeBSD.org> | 2004-08-18 21:13:15 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2004-08-18 21:13:15 +0000 |
commit | 4eb39ec016214e41998209a2e636fee0d9c3176e (patch) | |
tree | 78a4e381d7074d0391b999df4502a06a716a504b /lib/libc | |
parent | 89428b4ca73cfe5166b33b0a1ba52991f073cdc4 (diff) | |
download | FreeBSD-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.3 | 10 |
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 |