This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: No bsearch and qsort?
- From: DJ Delorie <dj at redhat dot com>
- To: Gregory Pietsch <gpietsch at comcast dot net>
- Cc: newlib at sourceware dot org
- Date: Fri, 13 Feb 2009 19:43:37 -0500
- Subject: Re: No bsearch and qsort?
- References: <49960F6F.9060205@comcast.net>
> I noticed that there wasn't a bsearch or a qsort in stdlib.
Maybe I'm missing something, but...
src/newlib/libc/include/stdlib.h:
_VOID _EXFUN(qsort,(_PTR __base, size_t __nmemb, size_t __size, int(*_compar)(const _PTR, const _PTR)));
_PTR _EXFUN(bsearch,(const _PTR __key,
src/newlib/libc/search/qsort.c
src/newlib/libc/search/bsearch.c
They look there to me.