xref: /original-bsd/lib/libc/stdlib/memory.3 (revision 06bf7e12)
1.\" Copyright (c) 1991, 1993
2.\"	The Regents of the University of California.  All rights reserved.
3.\"
4.\" %sccs.include.redist.man%
5.\"
6.\"     @(#)memory.3	8.1 (Berkeley) 06/04/93
7.\"
8.Dd
9.Dt MEMORY 3
10.Os BSD 4
11.Sh NAME
12.Nm malloc ,
13.Nm free ,
14.Nm realloc ,
15.Nm calloc ,
16.Nm alloca
17.Nd general memory allocation operations
18.Sh SYNOPSIS
19.Fd #include <stdlib.h>
20.Ft void *
21.Fn malloc "size_t size"
22.Ft void
23.Fn free "void *ptr"
24.Ft void *
25.Fn realloc "void *ptr" "size_t size"
26.Ft void *
27.Fn calloc "size_t nelem" "size_t elsize"
28.Ft void *
29.Fn alloca "size_t size"
30.Sh DESCRIPTION
31These functions allocate and free memory for the calling process.
32They are described in the
33individual manual pages.
34.Sh SEE ALSO
35.Xr calloc 3 ,
36.Xr free 3 ,
37.Xr malloc 3 ,
38.Xr realloc 3 ,
39.Xr alloca 3 ,
40.Sh STANDARDS
41These functions, with the exception of
42.Fn alloca
43conform to
44.St -ansiC .
45