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