util: added binsearch.h for binary array searches
commitfdc188725146ce3393b41b4203b8d665c2324402
authorAndrew Tridgell <tridge@samba.org>
Thu, 10 Dec 2009 03:35:24 +0000 (10 14:35 +1100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 15 Feb 2010 13:46:52 +0000 (15 14:46 +0100)
treeeb5cd7eb8719dc204dd6872f00ad6213c72817bb
parentdddb1c44532ba84ddec536aa335e68133d5aa4b3
util: added binsearch.h for binary array searches

This was moved from the schema_query code. It will now be used in more
than one place, so best to make it a library macro. I think there are
quite a few places that could benefit from this.
(cherry picked from commit 71943e8858943718affb6a3c0ded2127f07057f0)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 448b8f35d7a7cff73d35304673302178f593c9d0)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 2614ed62c8ca281d95151913ed591a86409e0566)
lib/util/binsearch.h [new file with mode: 0644]