-#define asearch(key, base, num, cmp) \
- (bsearch((key), (base), (num), sizeof(*(base)), \
- (int (*)(const void *, const void *))(cmp)))
+#define asearch(key, base, num, cmp, ctx) \
+ (_asearch((key), (base), (num), sizeof(*(base)), \
+ (int (*)(const void *, const void *, void *))(cmp), (ctx)))