#C/Sorting strings
27-Apr-93 20:02:43
Sb: #34144-#C/Sorting strings
Fm: Brian S Pearce 100033,3006
To: Brian Bartlett 72037,570
You could also read in the first and last names separately into
different components of a structure (e.g.
struct data {
char * fname;
char * lname;
.. other data ..
};
and the sorting function which you then pass to qsort can be aware
of the structure and do the compare any way you want.
This is a very general way of getting *any* multi-key sort to work
with qsort.