ReactOS  0.4.14-dev-77-gd9e7c48
memchr.c File Reference
#include <string.h>
Include dependency graph for memchr.c:

Go to the source code of this file.

Functions

void *__cdecl memchr (const void *s, int c, size_t n)
 

Function Documentation

◆ memchr()

void* __cdecl memchr ( const void s,
int  c,
size_t  n 
)

Definition at line 8 of file memchr.c.

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 }
GLdouble n
Definition: glext.h:7729
const GLubyte * c
Definition: glext.h:8905
GLdouble s
Definition: gl.h:2039
GLfloat GLfloat p
Definition: glext.h:8902