.\" Copyright (c) 1980, 1991, 1993 .\" The Regents of the University of California. All rights reserved. .\" .\" %sccs.include.redist.man% .\" .\" @(#)alloca.3 8.1 (Berkeley) 06/04/93 .\" .Dd .Dt ALLOCA 3 .Os BSD 4 .Sh NAME .Nm alloca .Nd memory allocator .Sh SYNOPSIS .Fd #include .Ft void * .Fn alloca "size_t size" .Sh DESCRIPTION The .Fn alloca function allocates .Fa size bytes of space in the stack frame of the caller. This temporary space is automatically freed on return. .Sh RETURN VALUES The .Fn alloca function returns a pointer to the beginning of the allocated space. If the allocation failed, a .Dv NULL pointer is returned. .Sh SEE ALSO .Xr brk 2 , .Xr pagesize 2 .Xr calloc 3 , .Xr malloc 3 , .Xr realloc 3 , .Sh BUGS The .Fn alloca function is machine dependent; its use is discouraged. .\" .Sh HISTORY .\" The .\" .Fn alloca .\" function appeared in .\" .Bx ?? . .\" The function appeared in 32v, pwb and pwb.2 and in 3bsd 4bsd .\" The first man page (or link to a man page that I can find at the .\" moment is 4.3...