🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #2996

Re: qsort() in gcc does not do indirect sorting?

#2996
From: Peter Roosen
Date: Tue, 17 Nov 1992 08:03
10 lines
968 bytes
Hello Chao Kuei,

just some days ago I hit the same problem with qsort() of gnu-C. After some 
time of experimenting I found, that the comparison operator must be set just 
in contrary to that demanded. So, just exchange ">" by "<" and qsort will 
run as expected.

Hope this helps,

	Peter
Technical Details
Message-ID: <roosen.721987387@messua>
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!sdd.hp.com!spool.mu.edu!darwin.sura.net!jvnc.net!yale.edu!ira.uka.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!Urmel.Informatik.RWTH-Aachen.DE!messua!roosen
References: <1e3ejjINNdf4@pollux.usc.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer,comp.os.os2.apps
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!sdd.hp.com!spool.mu.edu!darwin.sura.net!jvnc.net!yale.edu!ira.uka.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!Urmel.Informatik.RWTH-Aachen.DE!messua!roosen
From: roosen@messua.informatik.rwth-aachen.de (Peter Roosen)
Subject: Re: qsort() in gcc does not do indirect sorting?
Message-ID: <roosen.721987387@messua>
Sender: news@Urmel.Informatik.RWTH-Aachen.DE (Newsfiles Owner)
Nntp-Posting-Host: messua
Organization: Rechnerbetrieb Informatik  /  RWTH Aachen
References: <1e3ejjINNdf4@pollux.usc.edu>
Date: 17 Nov 92 08:03:07 GMT
Lines: 11