ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

lfind.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 doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.