Could you please help me on this. i tried but i am getting segmantation fault.
void qsort(char *v[], int left, int right){
int i, last;
void swap(char *v[],int i,int j);
if(left>=right)
return ;
swap(v,left,(left+right)/2);
last = left;
for(i=left+1;i<=right;i++)
if(strcmp(v,v)<0)
swap(v,++last,i);
swap(v,left,last);
qsort(v,left,last-1);
qsort(v,last+1,right);
}
void swap(char *v[],int i,int j){
'...
...
}
int main() {
char s[]={5,3,4,6,1,2,9};
char *temp;
temp = s;
qsort(&temp,0,6);
for(int i=0;i<6;i++)
printf("%c \t",s);
system("PAUSE");
return 0;
}