Message-ID: <388CBC09.57C891DA@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> <388758A7 DOT 1B64BDF9 AT cyberoptics DOT com> <388824A4 DOT 7E8CA268 AT is DOT elta DOT co DOT il> <869q6i$ika$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <38887BFB DOT 2D3FA7A6 AT cyberoptics DOT com> <388892F6 DOT 80148238 AT is DOT elta DOT co DOT il> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 16 Date: Mon, 24 Jan 2000 14:54:33 -0600 NNTP-Posting-Host: 38.196.93.9 X-Trace: client 948747273 38.196.93.9 (Mon, 24 Jan 2000 15:54:33 EST) NNTP-Posting-Date: Mon, 24 Jan 2000 15:54:33 EST To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Eli Zaretskii wrote: > Eric Rudd wrote: > > I will try it out with the new qsort, to see if the problems have been resolved. > > If you still see problems, please report them. I tried both the BSD qsort and the K.B. Williams qsort over the weekend, with the array containing many duplicate values, and a little random noise added to the comparison function. This produced array overflows with the BSD qsort, but the K.B. Williams version behaved just fine. Thus, the problem the original poster had must have been due to something else. -Eric Rudd rudd AT cyberoptics DOT com