4 * Copyright 2001 Francois Gouget.
6 #ifndef __WINE_SEARCH_H
7 #define __WINE_SEARCH_H
8 #define __WINE_USE_MSVCRT
10 #ifdef USE_MSVCRT_PREFIX
11 #define MSVCRT(x) MSVCRT_##x
17 #ifndef MSVCRT_SIZE_T_DEFINED
18 typedef unsigned int MSVCRT(size_t);
19 #define MSVCRT_SIZE_T_DEFINED
27 typedef int (*MSVCRT_compar_fn_t
)(const void*,const void*);
29 void* _lfind(const void*,const void*,unsigned int*,unsigned int,MSVCRT_compar_fn_t
);
30 void* _lsearch(const void*,void*,unsigned int*,unsigned int,MSVCRT_compar_fn_t
);
32 void* MSVCRT(bsearch
)(const void*,const void*,MSVCRT(size_t),MSVCRT(size_t),MSVCRT_compar_fn_t
);
33 void MSVCRT(qsort
)(void*,MSVCRT(size_t),MSVCRT(size_t),MSVCRT_compar_fn_t
);
40 #ifndef USE_MSVCRT_PREFIX
42 #define lsearch _lsearch
43 #endif /* USE_MSVCRT_PREFIX */
45 #endif /* __WINE_SEARCH_H */