diff options
author | millert <> | 1999-03-23 21:07:57 +0000 |
---|---|---|
committer | millert <> | 1999-03-23 21:07:57 +0000 |
commit | 98fa353b36e7043d0509bd088b3925d736cab68b (patch) | |
tree | 48950950a99a9b2fb233bfa04c3e0ae59372d3fa /src | |
parent | 62d4778341f17e9385e8bedbf0d54f6aa9953c0b (diff) | |
download | openbsd-98fa353b36e7043d0509bd088b3925d736cab68b.tar.gz openbsd-98fa353b36e7043d0509bd088b3925d736cab68b.tar.bz2 openbsd-98fa353b36e7043d0509bd088b3925d736cab68b.zip |
Clarify realloc return value
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libc/stdlib/malloc.3 | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/libc/stdlib/malloc.3 b/src/lib/libc/stdlib/malloc.3 index f35c86ac48..9edff6709c 100644 --- a/src/lib/libc/stdlib/malloc.3 +++ b/src/lib/libc/stdlib/malloc.3 | |||
@@ -33,7 +33,7 @@ | |||
33 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 33 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
34 | .\" SUCH DAMAGE. | 34 | .\" SUCH DAMAGE. |
35 | .\" | 35 | .\" |
36 | .\" $OpenBSD: malloc.3,v 1.10 1998/11/17 23:41:43 aaron Exp $ | 36 | .\" $OpenBSD: malloc.3,v 1.11 1999/03/23 21:07:57 millert Exp $ |
37 | .\" | 37 | .\" |
38 | .Dd August 27, 1996 | 38 | .Dd August 27, 1996 |
39 | .Dt MALLOC 3 | 39 | .Dt MALLOC 3 |
@@ -101,8 +101,9 @@ The | |||
101 | .Fn realloc | 101 | .Fn realloc |
102 | function changes the size of the object pointed to by | 102 | function changes the size of the object pointed to by |
103 | .Fa ptr | 103 | .Fa ptr |
104 | to the size specified by | 104 | to |
105 | .Fa size . | 105 | .Fa size |
106 | bytes and returns a pointer to the (possibly moved) object. | ||
106 | The contents of the object are unchanged up to the lesser | 107 | The contents of the object are unchanged up to the lesser |
107 | of the new and old sizes. | 108 | of the new and old sizes. |
108 | If the new size is larger, the value of the newly allocated portion | 109 | If the new size is larger, the value of the newly allocated portion |