快速排序,void Qsort(void *base,int nelem,int width, int (*fcmp)(const void *,const void *))的实现。
voidswap(void*pLeft,void*pRight,intwidth){void*tmp=malloc(width);memcpy(tmp,pLeft,width);memcpy(pLeft,pRight,width);memcpy(pRight,tmp,width);free(tmp);tmp=NULL;}voidqs(void*pHead,intbegin,intend,intwi