summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorkeramida <keramida@FreeBSD.org>2001-11-24 03:05:40 +0000
committerkeramida <keramida@FreeBSD.org>2001-11-24 03:05:40 +0000
commit472fe40c0085d058c485edf1c329e1b4ee68e9a3 (patch)
treedf4a5cbfb4da58abb31fe8caf06b8db5c57d6e8b /lib/libc
parent2a4db3665281d6bde7d6f4b6fc8e4d17c653412e (diff)
downloadFreeBSD-src-472fe40c0085d058c485edf1c329e1b4ee68e9a3.zip
FreeBSD-src-472fe40c0085d058c485edf1c329e1b4ee68e9a3.tar.gz
Be more explicit about the fact that realloc() might return a
different pointer than the one passed to it. PR: docs/31925 Submitted by: Andrew <andrew@ugh.net.au>
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/stdlib/malloc.34
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libc/stdlib/malloc.3 b/lib/libc/stdlib/malloc.3
index a8690c7..2ce7e0f 100644
--- a/lib/libc/stdlib/malloc.3
+++ b/lib/libc/stdlib/malloc.3
@@ -117,6 +117,10 @@ is returned and
the memory referenced by
.Fa ptr
is valid and unchanged.
+If memory can be allocated a pointer to the newly allocated portion of
+the memory is returned. Note that this may be different from the value
+passed as
+.Fa ptr .
If
.Fa ptr
is
OpenPOWER on IntegriCloud