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
TYPEarray, returning a pointer to the allocatedTYPEarray. If the array cannot be dynamically allocated, 0 (zero) is returned. -
static void TYPE_free(TYPE_slice * Value); - This function frees a dynamically allocated
TYPEarray. TheValueargument is a pointer to the dynamically allocatedTYPEarray to be freed.
Parent topic: Arrays