brewbuck,
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:
Code:
void qsort(void *lineptr[], int left, int right,
int(*comp)(void *, void *));
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:
Code:
qsort((void **) lineptr, 0, nlines-1,
(int (*)(void*,void*))(numeric ? numcmp : strcmp));
Exactly what is going on with the (void**) part?