82137ef4a4f2d38e856ae8fad63a7c4a5be36199
[mono.git] / mono / utils / bsearch.h
1 #ifndef __MONO_BSEARCH_H__
2 #define __MONO_BSEARCH_H__
3
4 #include <stdlib.h>
5
6 #include "mono/utils/mono-compiler.h"
7
8 typedef int (* BinarySearchComparer) (const void *key, const void *member);
9
10 void *
11 mono_binary_search (
12         const void *key,
13         const void *array,
14         size_t array_length,
15         size_t member_size,
16         BinarySearchComparer comparer);
17
18 #endif