Thanks for the quick response. I can now ask my next function pointer question. In the same program I mentioned above there is a function called qsort. The declaration is below:
Here the function takes an array of pointers, two integers and a function pointer. Later in the program the qsort function is called as shown below:
void qsort(void *lineptr, int left, int right,
int(*comp)(void *, void *));
Exactly what is going on with the (void**) part?
qsort((void **) lineptr, 0, nlines-1,
(int (*)(void*,void*))(numeric ? numcmp : strcmp));