Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!zaphod.mps.ohio-state.edu!caen!news From: garath@irie.ais.org (Belgarath) Newsgroups: comp.lang.c Subject: qsort() Message-ID: <1991Apr15.042010.6744@engin.umich.edu> Date: 15 Apr 91 04:20:10 GMT Sender: news@engin.umich.edu (CAEN Netnews) Organization: There is NO organization in my life. Randomness rules Lines: 12 I am trying to learn how to use qsort(). If you can help please reply via e-mail, as I do not read this group regularly yet. I have a struct with 4 ints, a few chars, and a float. one is 'char name[15]' and the variable is defined as: struct the_struct people[49]; I want to use qsort() to sort the structure alphabetically according to the name field of the structure.. I don't quite understand the man page on qsort(). Can someone give me an example of how to do this please? Thank you.