17 (
void *base,
size_t nmemb,
size_t size,
int (*compar)(
const void *,
const void *))
18 {
char *base2=(
char *)base;
25 {
while((*compar)(&base2[size*c],&base2[size*a])>0)
27 while((*compar)(&base2[size*c],&base2[size*b])<0)
32 {
char tmp=base2[size*a+i];
33 base2[size*a+i]=base2[size*b+i];
34 base2[size*b+i]=tmp; }
44 {
qsort(base2,b,size,compar);
48 {
qsort(&base2[size*b],nmemb-b,size,compar);