cp_heap

Section: libcprops - cp_heap (3)
Updated: JULY 2006
Index Return to Main Contents
 

NAME

cp_heap_contract - reduce allocated heap size to accomodate for the current number of items

 

SYNOPSIS

#include <cprops/heap.h>

int cp_heap_contract(cp_heap *heap);

 

DESCRIPTION

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.

 

RETURN VALUE

cp_heap_contract returns 0 on success, non-zero if reallocation fails.


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE

This document was created by man2html, using the manual pages.
Time: 10:58:19 GMT, July 29, 2006