From 95325feb5a9ef900e1f6ea5233bc3dfa40354ce0 Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Sat, 29 Oct 2005 15:17:47 +1000 Subject: [SYSTEM] Added default implementation of bsearch Added impelmentation of bsearch since klibc doesn't have it yet. --- src/system.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/system.h') diff --git a/src/system.h b/src/system.h index cc64b79..d686024 100644 --- a/src/system.h +++ b/src/system.h @@ -58,3 +58,8 @@ char *strchrnul(const char *, int); #ifndef HAVE_STRTOUMAX #define strtoumax strtoull #endif + +#ifndef HAVE_BSEARCH +void *bsearch(const void *, const void *, size_t, size_t, + int (*)(const void *, const void *)); +#endif -- cgit 1.4.1