#include <stdlib.h>
void bsearch(const void *key, const void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *));
The comparison function pointed to by compar is called with two arguments that point to the key object and to an array element, in that order. Bsearch returns an integer less than, equal to, or greater than zero if the key object is considered, respectively, to be less than, to match, or to be greater than the array element. The array shall consist of: all the elements that compare less than, all the objects that compare equal to and all the objects that compare greater than the key object, in that order.
Created by unroff & hp-tools. © somebody (See intro for details). All Rights Reserved. Last modified 11/5/97