lib/heap.c
/* Initializes 'heap' as an empty heap. */
Initializes 'heap' as an empty heap.
Initializes ' heap ' as an empty heap .
void
heap_init(struct heap *heap)
{
    heap->array = NULL;
    heap->n = 0;
    heap->allocated = 0;
}
void heap_init ( struct heap * heap ) { heap -> array = NULL ; heap -> n = 0 ; heap -> allocated = 0 ; }
Initializes 'heap' as an empty heap.
Initializes ' heap ' as an empty heap .