Date: Sat, 05 May 2001 09:19:55 +0300 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: "smiggy" 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: (ms001a8758 AT blueyonder DOT co DOT uk) Subject: Re: help with the qsort funtion (c) References: 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 Precedence: bulk > From: "smiggy" > 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.