Function Pointer as an Argument in C
more particulary, i need it for qsort function. when I do it like this
qsort( table, size, sizeof( element), &compare);
compiler tells me
warning: passing arg 4 of `qsort' from incompatible pointer type
compare is defined as a normal function.
what is wrong here ?
thank you.
|