ReactOS
0.4.16-dev-340-g0540c21
Functions
strstr.c File Reference
#include <precomp.h>
Include dependency graph for strstr.c:
Go to the source code of this file.
Functions
char
*
CDECL
strstr
(
const
char
*
s
,
const
char
*
find
)
Function Documentation
◆
strstr()
char
*
CDECL
strstr
(
const
char
*
s
,
const
char
*
find
)
Definition at line
17
of file
strstr.c
.
18
{
19
char
c
, sc;
20
size_t
len
;
21
22
if
((
c
= *
find
++) != 0)
23
{
24
len
=
strlen
(
find
);
25
do
{
26
do
{
27
if
((sc = *
s
++) == 0)
28
return
0;
29
}
while
(sc !=
c
);
30
}
while
(
strncmp
(
s
,
find
,
len
) != 0);
31
s
--;
32
}
33
return
(
char
*)((
size_t
)
s
);
34
}
strlen
ACPI_SIZE strlen(const char *String)
Definition:
utclib.c:269
strncmp
int strncmp(const char *String1, const char *String2, ACPI_SIZE Count)
Definition:
utclib.c:534
find
static TAGID TAGID find
Definition:
db.cpp:155
size_t
__kernel_size_t size_t
Definition:
linux.h:237
s
GLdouble s
Definition:
gl.h:2039
c
const GLubyte * c
Definition:
glext.h:8905
len
GLenum GLsizei len
Definition:
glext.h:6722
c
#define c
Definition:
ke_i.h:80
sdk
lib
crt
string
strstr.c
Generated on Thu Dec 12 2024 06:22:51 for ReactOS by
1.9.6