mirror of
https://github.com/TheAlgorithms/C.git
synced 2026-09-23 15:34:20 +00:00
Add the return value in create _heap()
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user