TheAlgorithms-C/sorting
Pongsakorn TIPPAYASOMDECH 2698ad2d13
fix: Segmentation fault in merge_sort.c (#1243)
* fix segmentation fault

* add a comments

* add print error message when can't malloc and exit program

* Update sorting/merge_sort.c

Co-authored-by: Sharon "Cass" Cassidy <monadicdiffusive@proton.me>

* Update sorting/merge_sort.c

Co-authored-by: Sharon "Cass" Cassidy <monadicdiffusive@proton.me>

---------

Co-authored-by: Sharon "Cass" Cassidy <monadicdiffusive@proton.me>
2023-04-08 19:58:03 -06:00
..
bead_sort.c
binary_insertion_sort.c
bogo_sort.c
bubble_sort_2.c
bubble_sort_recursion.c
bubble_sort.c
bucket_sort.c
CMakeLists.txt
cocktail_sort.c
comb_sort.c
counting_sort.c
cycle_sort.c
gnome_sort.c
heap_sort_2.c
heap_sort.c
insertion_sort_recursive.c
insertion_sort.c
merge_sort_nr.c
merge_sort.c fix: Segmentation fault in merge_sort.c (#1243) 2023-04-08 19:58:03 -06:00
multikey_quick_sort.c
odd_even_sort.c
pancake_sort.c
partition_sort.c
patience_sort.c
pigeonhole_sort.c
quick_sort.c
radix_sort_2.c
radix_sort.c
random_quick_sort.c
selection_sort_recursive.c
selection_sort.c
shaker_sort.c
shell_sort2.c
shell_sort.c
stooge_sort.c