Void pointers in C

Posted by avd on Stack Overflow See other posts from Stack Overflow or by avd
Published on 2010-04-12T12:02:33Z Indexed on 2010/04/12 12:13 UTC
Read the original article Hit count: 570

Filed under:
|

I have written this qsort:

void qsort(void *a[],int low,int high, int (*compare)(void*,void*));

When I call this on

char *strarr[5];

It says invalid conversion from char** to void**. Why this is wrong?

This is the code:http://codepad.org/Flfm2zAE

© Stack Overflow or respective owner

Related posts about void-pointers

Related posts about c