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

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

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