diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1999-03-23 21:07:58 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1999-03-23 21:07:58 +0000 |
commit | 89e52e28cf191fa186fce7cc879fc6bdf164884f (patch) | |
tree | a832378361b2e94337aca48e5208c03b3a21a963 | |
parent | ef8f3a55fb1cf89975e29189e516da67f32d3247 (diff) |
Clarify realloc return value
-rw-r--r-- | lib/libc/stdlib/malloc.3 | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/stdlib/malloc.3 b/lib/libc/stdlib/malloc.3 index f35c86ac48c..9edff6709c6 100644 --- a/lib/libc/stdlib/malloc.3 +++ b/lib/libc/stdlib/malloc.3 @@ -33,7 +33,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: malloc.3,v 1.10 1998/11/17 23:41:43 aaron Exp $ +.\" $OpenBSD: malloc.3,v 1.11 1999/03/23 21:07:57 millert Exp $ .\" .Dd August 27, 1996 .Dt MALLOC 3 @@ -101,8 +101,9 @@ The .Fn realloc function changes the size of the object pointed to by .Fa ptr -to the size specified by -.Fa size . +to +.Fa size +bytes and returns a pointer to the (possibly moved) object. The contents of the object are unchanged up to the lesser of the new and old sizes. If the new size is larger, the value of the newly allocated portion |