]>
git.saurik.com Git - wxWidgets.git/blob - src/msw/wince/crt.cpp
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Implementation of CRT functions missing under Windows CE
4 // Author: Vadim Zeitlin
8 // Copyright: (c) 2004 Vadim Zeitlin <vadim@wxwindows.org>
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 #include "wx/msw/wince/missing.h"
14 #include "wx/wxprec.h"
21 bsearch(const void *key
, const void *base
, size_t num
, size_t size
,
22 int (wxCMPFUNC_CONV
*cmp
)(const void *, const void *))
27 char *lo
= (char *)base
;
28 char *hi
= lo
+ num
*size
;
31 mid
= lo
+ (hi
- lo
)/2;
33 res
= (*cmp
)(key
, mid
);