2.4. Dynamic Memory Allocation
Many DCM API functions return dynamic data in the form of linked lists, the last item in the list pointing to NULL. In this case, memory space must be allocated to accommodate the linked list. Functions of this type accept a pointer to an address at which to allocate the memory needed to return data to the client. The pointer is declared in the client application.
In order to avoid memory leaks in the application, this memory must be deallocated when it is no longer being used. The NCM_Dealloc( ) and NCM_DeallocValue( ) functions can be called by the client application to deallocate the memory dynamically allocated by another API function. Functions that require the use of NCM_Dealloc( ) and NCM_DeallocValue( ) are identified as such in Chapter 4, Function Reference.
Click here to contact Telecom Support Resources
Copyright 2003, Intel Corporation