Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenlsearch.c
Go to the documentation of this file.
00001 #include <stdlib.h> 00002 #include <string.h> 00003 #include <search.h> 00004 00005 /* 00006 * @implemented 00007 */ 00008 void *_lsearch(const void *key, void *base, unsigned int *nelp, unsigned int width, 00009 int (__cdecl *compar)(const void *, const void *)) 00010 { 00011 void *ret_find = _lfind(key,base,nelp,width,compar); 00012 00013 if (ret_find != NULL) 00014 return ret_find; 00015 00016 memcpy((void*)((int*)base + (*nelp*width)), key, width); 00017 00018 (*nelp)++; 00019 return base; 00020 } 00021 00022 Generated on Sat May 26 2012 04:35:29 for ReactOS by
1.7.6.1
|