diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2008-02-22 10:06:08 +0000 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2008-02-22 10:06:08 +0000 |
| commit | c4acc6895ae3ea0b4136661776c6e370641ad34c (patch) | |
| tree | 90e8ef27091adbd716f77a32488b769c15e44ec1 /man3 | |
| parent | bc5ec131687488dadfaa9f95bd68ae136a55f5cb (diff) | |
| download | man-pages-c4acc6895ae3ea0b4136661776c6e370641ad34c.tar.gz | |
Clarify description of realloc() behavior for ((size == 0) && (ptr != NULL)).
Diffstat (limited to 'man3')
| -rw-r--r-- | man3/malloc.3 | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/man3/malloc.3 b/man3/malloc.3 index 8f7436422e..deba0ecc8f 100644 --- a/man3/malloc.3 +++ b/man3/malloc.3 @@ -25,7 +25,7 @@ .\" Documented MALLOC_CHECK_, Wolfram Gloger (wmglo@dent.med.uni-muenchen.de) .\" 2007-09-15 mtk: added notes on malloc()'s use of sbrk() and mmap(). .\" -.TH MALLOC 3 2007-09-15 "GNU" "Linux Programmer's Manual" +.TH MALLOC 3 2008-02-22 "GNU" "Linux Programmer's Manual" .SH NAME calloc, malloc, free, realloc \- Allocate and free dynamic memory .SH SYNOPSIS @@ -98,12 +98,14 @@ The contents will be unchanged to the minimum of the old and new sizes; newly allocated memory will be uninitialized. If .I ptr -is NULL, the call is equivalent to +is NULL, then the call is equivalent to .IR malloc(size) ; if .I size is equal to zero, -the call is equivalent to +and +.I ptr +is not NULL, then the call is equivalent to .IR free(ptr) . Unless .I ptr |
