Article View: comp.std.c
Article #4940Re: Restrictions on qsort compare function?
From: M. J. Saltzman
Date: Thu, 21 Mar 1996 16:12
Date: Thu, 21 Mar 1996 16:12
13 lines
808 bytes
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!mjsReferences:
<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