util: added binsearch.h for binary array searches
authorAndrew Tridgell <tridge@samba.org>
Thu, 10 Dec 2009 03:35:24 +0000 (14:35 +1100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 11 Feb 2010 10:28:53 +0000 (11:28 +0100)
commit2614ed62c8ca281d95151913ed591a86409e0566
tree4555018508450f8369a242e2e86ea749e0039ecb
parentf8f6beff57fd58b69648633f5b1c15289015f96b
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>
lib/util/binsearch.h [new file with mode: 0644]