Commit | Line | Data |
---|---|---|
b6ff6969 CL |
1 | .\" Copyright (c) 1991 Regents of the University of California. |
2 | .\" All rights reserved. | |
3 | .\" | |
4 | .\" %sccs.include.redist.man% | |
5 | .\" | |
6 | .\" @(#)memory.3 5.1 (Berkeley) %G% | |
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 | |
31 | These functions allocate and free memory for the calling process. | |
32 | They are described in the | |
33 | individual 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 | |
41 | These functions, with the exception of | |
42 | .Fn alloca | |
43 | conform to | |
44 | .St -ansiC . |