🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #4940

Re: Restrictions on qsort compare function?

#4940
From: M. J. Saltzman
Date: Thu, 21 Mar 1996 16:12
13 lines
808 bytes
I wrote:

>             It would surprise me not at all if qsort() relied on
                                                         ^^^^^^^^^
>sort_func() having the property that

>	!!sort_func(p1, p2) == -1 * !!sort_func(p2, p1)

Of course, in comp.std.c, I should have said "...were permitted to rely on..."
-- 
		Matthew Saltzman
		Clemson University Math Sciences
		mjs@clemson.edu
Technical Details
Message-ID: <mjs.827424727@hubcap>
Path: arc1-ca.pugleaf.net!hubcap.clemson.edu!hubcap!mjs
References: <4iokop$h4p@lyra.csx.cam.ac.uk> <mjs.827419998@hubcap>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!hubcap.clemson.edu!hubcap!mjs
From: mjs@hubcap.clemson.edu (M. J. Saltzman)
Newsgroups: comp.std.c
Subject: Re: Restrictions on qsort compare function?
Date: 21 Mar 96 16:12:07 GMT
Organization: Clemson University
Message-ID: <mjs.827424727@hubcap>
References: <4iokop$h4p@lyra.csx.cam.ac.uk> <mjs.827419998@hubcap>
NNTP-Posting-Host: hubcap.clemson.edu
X-Newsreader: NN version 6.5.0 #1