1 #include <msvcrt/search.h>
2 #include <msvcrt/stdlib.h>
3 #include <msvcrt/string.h>
5 void *_lsearch(const void *key
, void *base
, size_t *nelp
, size_t width
,
6 int (*compar
)(const void *, const void *))
8 void *ret_find
= _lfind(key
,base
,nelp
,width
,compar
);
14 memcpy(base
+ (*nelp
*width
), key
, width
);
16 memcpy((int*)base
+ (*nelp
*width
), key
, width
);