Guardian Native C Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
_alloca(3) Guardian Native C Library Calls Reference Manual
NAME
_alloca - Allocates memory
LIBRARY
None. The C/C++ compiler generates in-line code for this function.
SYNOPSIS
#include <builtin.h>
void ∗∗_alloca(
unsigned short size);
PARAMETERS
size Specifies the number of bytes of memory to be allocated.
DESCRIPTION
The _alloca() function allocates size bytes of space in the stack frame of the caller. This tem-
porary space is freed automatically when the function that called the _alloca() function returns
to its caller.
Applications that include this function can be compiled on systems running J06.11 or later J-
series RVUs or H06.22 or later H-series RVUs only. Applications that include this function and
that have been compiled can be executed on systems running J06.03 or later J-series RVUs or
H06.04 or later H-series RVUs.
RETURN VALUES
This allocation function returns a pointer to the beginning of the allocated space. If the alloca-
tion causes a stack overflow, the application behavior is undefined.
ERRORS
None. This function does not set errno.
RELATED INFORMATION
Functions: malloc(3).
STANDARDS CONFORMANCE
This function is an HP extension to the POSIX standards.
1−18 Hewlett-Packard Company 527192-018