Thanks Salem. That worked.
I feel really stupid because I'm 95% sure I tried that. When I was testing I was only changing the first argument after the control string in the printf() and I got an...
Type: Posts; User: VIgnotam
Thanks Salem. That worked.
I feel really stupid because I'm 95% sure I tried that. When I was testing I was only changing the first argument after the control string in the printf() and I got an...
I realize that and I've tried taking away the asterisk with no luck. The reason why I put it in was because qsort() passes a pointer to another pointer in this case. But you're right, it's wrong, but...
Hey Everyone,
I'm fairly new to C and am having trouble sorting a linked list. To do this I decided to put the element pointers in an array and use qsort() to do the actual sorting by referencing...