I found this example of merge_sort here at cprogramming. I’m tyring to break down the algorithm to understand the alogrithm with in the context of quick sort another SO post.
EDIT:
I’ve updated/fixed the code and posted it as an answer below. This is a working merge_sort.
The code posted here could use some improvements in readability…Here they are. Verified this is a working merge_sort: