| delorie.com/archives/browse.cgi | search |
| From: | Marcus Rohrmoser <marcus DOT rohrmoser AT gmx DOT de> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Need help on integer array sorting!! |
| Date: | Mon, 09 Aug 1999 17:50:09 +0200 |
| Organization: | [posted via] Leibniz-Rechenzentrum, Muenchen (Germany) |
| Lines: | 6 |
| Distribution: | world |
| Message-ID: | <37AEF8B1.B5A8CF51@gmx.de> |
| References: | <19990804124158 DOT 17239 DOT 00001341 AT ng-cs1 DOT aol DOT com> <37a9bc77 DOT 3501210 AT news DOT enter DOT net> |
| NNTP-Posting-Host: | sun3.lrz-muenchen.de |
| Mime-Version: | 1.0 |
| X-Mailer: | Mozilla 4.61 [en] (X11; I; SunOS 5.5.1 sun4m) |
| X-Accept-Language: | en |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Try the standard-lib routine 'qsort'. Feed it with the array's starting address, number of items, the items' size and a comparison-function working like 'strcmp' and you'll get a quick and TESTED sorting engine. Marcus
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |