bsearch

bsearch, bsearch_s

Defined in header <stdlib.h>
void* bsearch( const void *key, const void *ptr, size_t count, size_t size,
               int (*comp)(const void*, const void*) );
(1)
void* bsearch_s( const void *key, const void *ptr, rsize_t count, rsize_t size,
                 int (*comp)(const void *, const void *, void *),
                 void *context );
(2) (since C11)
1) Finds an element equal to element pointed to by key in an array pointed to by ptr. The array contains cou