ReactOS
0.4.15-dev-7953-g1f49173
memchr.c
Go to the documentation of this file.
1
2
#include <string.h>
3
4
#if defined(_MSC_VER) && (_MSC_VER >= 1910 || !defined(_WIN64))
5
#pragma function(memchr)
6
#endif
/* _MSC_VER */
7
8
void
*
__cdecl
memchr
(
const
void
*
s
,
int
c
,
size_t
n
)
9
{
10
if
(
n
)
11
{
12
const
char
*
p
=
s
;
13
do
{
14
if
(*
p
++ ==
c
)
15
return
(
void
*)(
p
-1);
16
}
while
(--
n
!= 0);
17
}
18
return
0;
19
}
__cdecl
#define __cdecl
Definition:
accygwin.h:79
s
GLdouble s
Definition:
gl.h:2039
n
GLdouble n
Definition:
glext.h:7729
c
const GLubyte * c
Definition:
glext.h:8905
p
GLfloat GLfloat p
Definition:
glext.h:8902
memchr
#define memchr(s, c, n)
Definition:
mkisofs.h:875
sdk
lib
crt
mem
memchr.c
Generated on Thu Apr 25 2024 06:13:11 for ReactOS by
1.9.6