Program Base Library Functions
Returns but does not remove the element at the top of the heap.
Returns but does not remove the element at the top of the
This function has a time complexity of O(1).
- heap - The heap to use
- void* retptr != (void*)-1: The element returned.
void* retptr == (void*)-1: An error see pbl_errno:
PBL_ERROR_OUT_OF_BOUNDS - The heap is empty.
This page was generated with the help of DOC++.