projects
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Use free Windows DDK and compile with latest MinGW releases.
[reactos.git]
/
reactos
/
lib
/
msvcrt
/
search
/
lsearch.c
1
#include <msvcrti.h>
2
3
4
void
*
_lsearch
(
const void
*
key
,
void
*
base
,
size_t
*
nelp
,
size_t
width
,
5
int
(*
compar
)(
const void
*,
const void
*))
6
{
7
void
*
ret_find
=
_lfind
(
key
,
base
,
nelp
,
width
,
compar
);
8
9
if
(
ret_find
!=
NULL
)
10
return
ret_find
;
11
12
memcpy
(
base
+ (*
nelp
*
width
),
key
,
width
);
13
(*
nelp
)++;
14
return
base
;
15
}
16