C/Sorting strings
07-Apr-93 15:25:33
Sb: #34004-C/Sorting strings
Fm: Steve Goddard 100014,674
To: jack york 71562,3372
Hi Jack,
I would write a compare routine that did a simple scan along the line for the
surname. The compare routine could then be passed to qsort() to do the actual
sorting. Check out the qsort() family of functions in your compiler reference
manual. They are quite useful for this sort of thing, although they recurse, so
watch that stack!
Steve the G. [BEDFORDSHIRE, UK]