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 allocatedTYPE
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. TheValue
argument is a pointer to the dynamically allocatedTYPE
array to be freed.
Parent topic: Arrays