Message-ID: <388758A7.1B64BDF9@cyberoptics.com> From: Eric Rudd Organization: CyberOptics X-Mailer: Mozilla 4.08 [en] (Win95; U) MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: qsort() bug? Or invalid usage??? References: <867gpd$k0u$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 28 Date: Thu, 20 Jan 2000 12:49:11 -0600 NNTP-Posting-Host: 38.196.93.9 X-Trace: client 948394160 38.196.93.9 (Thu, 20 Jan 2000 13:49:20 EST) NNTP-Posting-Date: Thu, 20 Jan 2000 13:49:20 EST To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hans-Bernhard Broeker wrote: > The bigger worry, however, is the following: is this really a valid > comparison function? I.e. does it define an ordering of the input > elements? I haven't analysed it completely, but I doubt it does. > It has to be guaranteed to fulfill the following rules for the > 'smaller than' relation it describes: > > IF a NEVER a