Einzelnen Beitrag anzeigen
Alt 06.06.2002, 12:02   #3
PredeX
Senior Member
 
Registriert seit: 03.09.2001
Alter: 41
Beiträge: 165


Standard

Wenn ich mir den Prototypen
void qsort(void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *));

und das mit deinem Aufruf vergleiche:
qsort(aData, MAX, sizeof(data_t *), compare);

dann scheint es, dass es notwendig ist, dass du bei compare vergessen hast, zwei const void * (siehe prototyp) anzugeben. Schau mal in der Hilfe was das für Werte sein solln.

PredeX

PS: Ich hoffe ich habe mich verständlich ausgedrückt...
____________________________________
There are 10 types of people, those who understand binary and those who don\'t...

Ask Me No Questions, And I Tell You No Lies!
PredeX ist offline   Mit Zitat antworten