http://kor.i2p/books/The%20C%20Programming%20Language%20by%20K&R/chapter5.html
With input and output under control, we can proceed to sorting. The quicksort
from Chapter 4 needs minor changes: the
declarations have to be modified, and the comparison operation must be done
by calling strcmp . The algorithm remains the same, which gives us
some confidence that it will still work. /* qsort: sort v[left]...v[right] into increasing order */
void qsort(char *v[], int left, int right)
{
int i, last;
void swap(char *v[], int i, int j);
if (left >...