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