This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: qsort_r argument order



Exactly as you have said before, it is because qsort_r is not part of any standard.

So, the same argument can be made for BSD and Mac OSX: why they permute the parameters?

qsort_r appeared in FreeBSD in 2002 [1], possibly earlier in other BSDs. If I'm not mistaken, it appeared in glibc in 2007 [2].


http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libc/stdlib/qsort.c?annotate=1.12
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/include/stdlib.h?rev=1.42&content-type=text/x-cvsweb-markup&cvsroot=glibc

cheers,
dstn.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]