mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 06:26:35 +00:00
Create a branch for cmake bringup.
svn path=/branches/cmake-bringup/; revision=48236
This commit is contained in:
parent
a28e798006
commit
c424146e2c
20602 changed files with 0 additions and 1140137 deletions
22
lib/sdk/crt/search/lsearch.c
Normal file
22
lib/sdk/crt/search/lsearch.c
Normal file
|
@ -0,0 +1,22 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <search.h>
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
void *_lsearch(const void *key, void *base, unsigned int *nelp, unsigned int width,
|
||||
int (__cdecl *compar)(const void *, const void *))
|
||||
{
|
||||
void *ret_find = _lfind(key,base,nelp,width,compar);
|
||||
|
||||
if (ret_find != NULL)
|
||||
return ret_find;
|
||||
|
||||
memcpy((void*)((int*)base + (*nelp*width)), key, width);
|
||||
|
||||
(*nelp)++;
|
||||
return base;
|
||||
}
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue