alloca(S-osr5)
alloca --
memory allocator
Syntax
#include <alloca.h>
char *alloca(int size);
Description
alloca allocates size bytes of space in the stack
frame of the caller, and returns a pointer to the allocated block.
This temporary space is automatically freed when the caller returns.
Note that if the allocated block is beyond the current stack limit,
the resulting behavior is undefined.
Notes
alloca is machine-, compiler-, and most of all,
system-dependent.
Its use is strongly discouraged.
See also
brk(S-osr5)
malloc(S-osr5)
© 2005 System Services (S-osr5)
SCO OpenServer Release 6.0.0 -- 02 June 2005