qsort.c in ldb?

Andrew Bartlett abartlet at samba.org
Mon Aug 27 10:49:57 GMT 2007


On Mon, 2007-08-27 at 12:46 +0200, Volker Lendecke wrote:
> Hi, Simo!
> 
> Quick question: Why do we have qsort.c in lib/ldb/common/?
> IIRC qsort is required even in ANSI C. I can see a wrapper
> function, but the whole thing?

The problem with standard qsort() is the lack of a context pointer.
Some of the comparison functions need access an 'ldb' or the like. 

Andrew Bartlett

-- 
Andrew Bartlett
http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org
Samba Developer, Red Hat Inc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20070827/3c78d6d7/attachment.bin


More information about the samba-technical mailing list