Lines Matching refs:key
29 /* If key is found, returns TRUE and sets idx_r to the position where the key
30 was found. If key isn't found, returns FALSE and sets idx_r to the position
31 where the key should be inserted. */
33 bsearch_insert_pos(const void *key, const void *base, unsigned int nmemb,
36 #define bsearch_insert_pos(key, base, nmemb, size, cmp, idx_r) \
37 bsearch_insert_pos(key, base, nmemb, size + \
38 CALLBACK_TYPECHECK(cmp, int (*)(typeof(const typeof(*key) *), \
43 array_bsearch_insert_pos_i(const struct array *array, const void *key,
46 #define array_bsearch_insert_pos(array, key, cmp, idx_r) \
48 CALLBACK_TYPECHECK(cmp, int (*)(typeof(const typeof(*key) *), \
50 (const void *)key, (int (*)(const void *, const void *))cmp, idx_r)