13.1.10.5 Allocation Member Functions

For each array, there are two static functions for array allocation and deallocation. For a given OMG IDL type TYPE , the allocation and deallocation routines are as follows:

static TYPE_slice * TYPE_alloc(void);
This function allocates a TYPE array, returning a pointer to the allocated TYPE array. If the array cannot be dynamically allocated, 0 (zero) is returned.
static void TYPE_free(TYPE_slice * Value);
This function frees a dynamically allocated TYPE array. The Value argument is a pointer to the dynamically allocated TYPE array to be freed.