mirror of
https://github.com/TheAlgorithms/C
synced 2024-11-22 05:21:49 +03:00
Add the return value in create _heap()
This commit is contained in:
parent
457fbf9b6f
commit
e6d1bd9d2a
@ -46,6 +46,7 @@ Heap* create_heap(Heap* heap){
|
||||
heap->size = 1;
|
||||
heap->p = (int *)malloc(heap->size*sizeof(int));
|
||||
heap->count = 0;
|
||||
return heap;
|
||||
}
|
||||
|
||||
void down_heapify(Heap* heap, int index){
|
||||
|
@ -46,6 +46,7 @@ Heap* create_heap(Heap* heap){
|
||||
heap->size = 1;
|
||||
heap->p = (int *)malloc(heap->size*sizeof(int));
|
||||
heap->count = 0;
|
||||
return heap;
|
||||
}
|
||||
|
||||
void down_heapify(Heap* heap, int index){
|
||||
|
Loading…
Reference in New Issue
Block a user