Priority queue implementation
Check out bin.h for methods available.
// use binheap_init() to initialize binary heap
Binary_Heap *binh = binheap_init();
// to free memory use
binheap_deinit(binh);
Since binheap_construct(int* arr, size_t size);
doesn’t allocate memory for the array. You should pass malloc’d array.