So I have been obsessing over creating a merge sort for linked lists. I can do a merge sort with an int array fine, but there seems to be much less flexability dealing with an array of structs which is giving me a lot of problems. How do you return an array of structs? (After trying it and googling I am not sure if it is possible, strangely). Trying to pass such a list as an argument seems even less possible.
Ideally, I would to do this with just an array of struct pointers, or an array of any kind of pointers but my compiler will not let me cast them into struct pointers in a useful way.