util: added binsearch.h for binary array searches
commitdd7a09d2098fe0951f8dc716aba1bc9c7a485219
authorAndrew Tridgell <tridge@samba.org>
Thu, 10 Dec 2009 03:35:24 +0000 (10 14:35 +1100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 9 Feb 2010 09:33:19 +0000 (9 10:33 +0100)
treeefc7bf2304a97e7da8e2cab031e1a232c094b1fa
parent50129a89262a0ae44709d868f30e4fee9f376c4a
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 6b24639c08b764eb0205c63674e80b303b2be2ac)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
lib/util/binsearch.h [new file with mode: 0644]