HP aC++/HP C A.06.20 Release Notes
This will insure that, when the application is migrated to a system that has a later
version of libA available, the actual version desired is the one that is dynamically
loaded.
• Memory Allocation Routine alloca()
The compiler supports the built in function, alloca, defined in the
/usr/include/alloca.h header file. The implementation of the alloca() routine is
system dependent, and its use is not encouraged.
alloca() is a memory allocation routine similar to malloc() (see malloc(3C)).
The syntax is:
void *alloca(size_t <size>);
alloca() allocates space from the stack of the caller for a block of at least <size>
bytes, but does not initialize the space. The space is automatically freed when the
calling routine exits.
NOTE: Memory returned by alloca() is not related to memory allocated by
other memory allocation functions. Behavior of addresses returned by alloca()
as parameters to other memory functions is undefined.
To use this function, you must use the <alloca.h> header file.
Known Limitations 39