summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormillert <>1999-03-23 21:07:57 +0000
committermillert <>1999-03-23 21:07:57 +0000
commit98fa353b36e7043d0509bd088b3925d736cab68b (patch)
tree48950950a99a9b2fb233bfa04c3e0ae59372d3fa /src
parent62d4778341f17e9385e8bedbf0d54f6aa9953c0b (diff)
downloadopenbsd-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.37
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
102function changes the size of the object pointed to by 102function changes the size of the object pointed to by
103.Fa ptr 103.Fa ptr
104to the size specified by 104to
105.Fa size . 105.Fa size
106bytes and returns a pointer to the (possibly moved) object.
106The contents of the object are unchanged up to the lesser 107The contents of the object are unchanged up to the lesser
107of the new and old sizes. 108of the new and old sizes.
108If the new size is larger, the value of the newly allocated portion 109If the new size is larger, the value of the newly allocated portion