[plug] qsort
James Elliott
James.Elliott at wn.com.au
Sun Jun 9 19:44:11 WST 2002
The lab exercise says "you MUST use the C library routine, qsort - Do not
write your own....." .... hence my question.
James Elliott
Ravensthorpe Computers
ABN 34 305 232 710
Tel: 08 9838 1043
Fax: 08 9838 1049
Cell: 0428 39 6052
E-mail: James.Elliott at wn.com.au
Australia Post:
PO Box 228, Ravensthorpe WA 6346
----- Original Message -----
From: "Bernard Blackham" <bernard at blackham.com.au>
To: <plug at plug.linux.org.au>
Sent: Sunday, June 09, 2002 4:38 PM
Subject: Re: [plug] qsort
> On Sun, Jun 09, 2002 at 04:39:08PM +0800, Richard wrote:
> > Wouldn't it be easier just to write your own simple sort. This all seems
> > a bit convoluted to me :)
>
> Well you can always write your own qsort (eliminate the off by one
> errors and its not too hard). In pascal you had no choice. The
> beautiful thing about qsort is its speed. If you weren't worried
> about speed and portability, you could probably pipe it through
> /usr/bin/sort :) (Hell, write the entire thing as a shell script.
> love em!)
>
> Bernard.
>
> --
> Bernard Blackham
> bernard at blackham.com.au
> Australian Linux Technical Conference 2003: http://conf.linux.org.au/
>
>
>
More information about the plug
mailing list