42 static void swap(
void *v[],
int i,
int j)
62 void quicksort(
void *v[],
int left,
int right,
63 int (*comp) (
void *,
void *))
69 swap(v, left, (left+right)/2);
71 for(i=left+1; i<=right; i++)
72 if((*comp)(v[i], v[left])<0)
75 quicksort(v, left, last-1, comp);
76 quicksort(v, last+1, right, comp);