#include <alloca.h>
void *alloca(size_t size);
The alloca() function
allocates space in the stack frame of the caller, and returns a
pointer to the allocated block. This temporary space is
automatically freed when the function from which
alloca() is called returns.
- size
-
Specifies the size of the allocated block of memory.
The alloca() function
returns a null pointer if there is insufficient memory.
4.4BSD
MT-Safe.
The alloca() function is
implemented as a compiler intrinsic.
The <alloca.h> header file must be included.
MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition
- Functions:
- calloc(), free(), malloc(), memalign(), realloc(), valloc()
MKS Toolkit 9.2 Documentation Build 16.