1*61180Sbostic.\" Copyright (c) 1991, 1993 2*61180Sbostic.\" The Regents of the University of California. All rights reserved. 348915Scael.\" 448915Scael.\" %sccs.include.redist.man% 548915Scael.\" 6*61180Sbostic.\" @(#)memory.3 8.1 (Berkeley) 06/04/93 748915Scael.\" 848915Scael.Dd 948915Scael.Dt MEMORY 3 1048915Scael.Os BSD 4 1148915Scael.Sh NAME 1248915Scael.Nm malloc , 1348915Scael.Nm free , 1448915Scael.Nm realloc , 1548915Scael.Nm calloc , 1648915Scael.Nm alloca 1748915Scael.Nd general memory allocation operations 1848915Scael.Sh SYNOPSIS 1948915Scael.Fd #include <stdlib.h> 2048915Scael.Ft void * 2148915Scael.Fn malloc "size_t size" 2248915Scael.Ft void 2348915Scael.Fn free "void *ptr" 2448915Scael.Ft void * 2548915Scael.Fn realloc "void *ptr" "size_t size" 2648915Scael.Ft void * 2748915Scael.Fn calloc "size_t nelem" "size_t elsize" 2848915Scael.Ft void * 2948915Scael.Fn alloca "size_t size" 3048915Scael.Sh DESCRIPTION 3148915ScaelThese functions allocate and free memory for the calling process. 3248915ScaelThey are described in the 3348915Scaelindividual manual pages. 3448915Scael.Sh SEE ALSO 3548915Scael.Xr calloc 3 , 3648915Scael.Xr free 3 , 3748915Scael.Xr malloc 3 , 3848915Scael.Xr realloc 3 , 3948915Scael.Xr alloca 3 , 4048915Scael.Sh STANDARDS 4148915ScaelThese functions, with the exception of 4248915Scael.Fn alloca 4348915Scaelconform to 4448915Scael.St -ansiC . 45