I have written the code below attempting to narrow down my problem to a small section of code to get some help with the issue. It returns the warning:
"tmain.c:16: warning: passing argument 4 of ‘qsort’ from incompatible pointer type"
The code seems to work in that it will actually sort the array, but I cant help but wonder if something is slightly wrong and will blow up later.
I am running Fedora 10 and compiling it with gcc -c [file name] (gcc version 4.3.2 20081105 (Red Hat 4.3.2-7) (GCC) )
Thank you for the help.
The reason is that the comparison function is supposed to have const void* parameters, but you defined your comparison function with non-const void* parameters.
C + C++ Compiler: MinGW port of GCC
Build + Version Control System: SCons + Bazaar
Bookmarks