| delorie.com/archives/browse.cgi | search |
| Date: | Sat, 05 May 2001 09:19:55 +0300 |
| From: | "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> |
| Sender: | halo1 AT zahav DOT net DOT il |
| To: | "smiggy" <ms001a8758 AT blueyonder DOT co DOT uk> |
| Message-Id: | <2593-Sat05May2001091955+0300-eliz@is.elta.co.il> |
| X-Mailer: | Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9 |
| CC: | djgpp AT delorie DOT com |
| In-reply-to: | <BJHI6.954$Cf.306909@news1.cableinet.net> |
| (ms001a8758 AT blueyonder DOT co DOT uk) | |
| Subject: | Re: help with the qsort funtion (c) |
| References: | <BJHI6.954$Cf DOT 306909 AT news1 DOT cableinet DOT net> |
| Reply-To: | djgpp AT delorie DOT com |
| Errors-To: | nobody AT delorie DOT com |
| X-Mailing-List: | djgpp AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
> From: "smiggy" <ms001a8758 AT blueyonder DOT co DOT uk> > Newsgroups: comp.os.msdos.djgpp > Date: Sat, 05 May 2001 00:22:57 GMT > > Im having problems understanding the qsort function when trying to sort an > element of an array, > for example if i have a number of arrays like the following > > steve 00122334 > martin 91002123 > james 01323254 > > can anyone help me, im trying to sort the above information by the first 2 > characters of the number section (i.e. 00215354) which correspond to the > year. Did you read the documentation of `qsort' in the library reference? From the DOS prompt, type "info libc alpha qsort". You will see there an example code which should explain things quite a bit. If something in that description is unclear, please ask specific questions.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |