lib/heap.c
/* Removes all of the elements from 'heap', without freeing any allocated
 * memory. */
Removes all of the elements from 'heap', without freeing any allocated
memory.
Removes all of the elements from ' heap ' without freeing any allocated memory .
void
heap_clear(struct heap *heap)
{
    heap->n = 0;
}
void heap_clear ( struct heap * heap ) { heap -> n = 0 ; }
Removes all of the elements from 'heap', without freeing any allocated
 memory.
Removes all of the elements from ' heap ' without freeing any allocated memory .