56 int (*compar)(
const void *,
const void *);
59 const char* base = base0;
64 for(lim = nmemb; lim != 0; lim >>= 1)
66 p = base + (lim >> 1) * size;
67 cmp = (*compar)(key, p);
70 return ((
void*)(uintptr_t)p);
74 base = (
const char*)p + size;
void * bsearch(void *key, const void *base0, size_t nmemb, size_t size, int *compar) const
int cmp(Bigint *a, Bigint *b)