What that error message is saying is that qsort on your compiler, needs a const char pointer, instead of a const void pointer. Which is *really* non-standard.
Can you d/l and use a newer, free...
Type: Posts; User: Adak
What that error message is saying is that qsort on your compiler, needs a const char pointer, instead of a const void pointer. Which is *really* non-standard.
Can you d/l and use a newer, free...
What compiler are you using, Malachi?
Did you try the simpler:
return(strcmp(a, b)); //?
That is the help file for qsort - it's not code to put into your program!
It just explains what qsort is, in the C standard library, and how to use it, and then has a small simple example program,...
You have defined a cmp function, and on the qsort line, you have named the compare function.
But you have not put in a cmp function!
I'm giving you a bit of a rough handling because I object...
Don't you need a real cmp function, for this to work?
I don't see one.
You've got the definition of the cmp function, but no function.