Section: libcprops - cp_heap (3)
Updated: JULY 2006
Return to Main Contents
cp_heap_contract - reduce allocated heap size to accomodate for the current
number of items
int cp_heap_contract(cp_heap *heap);
cp_heap represents a heap data structure internally using a pointer array which
is resized when it becomes full. After removing itmes, the internal array
remains at the maximal size required during operation. To adapt the internal
array size for the current heap usage, call cp_heap_contract.
cp_heap_contract returns 0 on success, non-zero if reallocation fails.
- RETURN VALUE
This document was created by
using the manual pages.
Time: 10:58:19 GMT, July 29, 2006