HP aC++/HP ANSI C A.06.27 Release Notes
For example, if libA.so is now a symbolic link to libA.so.1, then calls to dynamically
load this library should specify the latest version available when the application is compiled,
such as:
shl_load("libA.so.1", BIND_DEFERRED, 0);
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 47