ReactOS  0.4.14-dev-41-g31d7680
mbsrchr.c File Reference
#include <stdlib.h>
#include <mbstring.h>
Include dependency graph for mbsrchr.c:

Go to the source code of this file.

Functions

unsigned char_mbsrchr (const unsigned char *src, unsigned int val)
 

Function Documentation

◆ _mbsrchr()

unsigned char* _mbsrchr ( const unsigned char src,
unsigned int  val 
)

Definition at line 16 of file mbsrchr.c.

17 {
18  unsigned int c;
19  unsigned char *match = NULL;
20 
21  if (!src)
22  return NULL;
23 
24  while (1)
25  {
26  c = _mbsnextc(src);
27  if (c == val)
28  match = (unsigned char*)src;
29  if (!c)
30  return match;
31  src += (c > 255) ? 2 : 1;
32  }
33 }
Definition: match.c:28
smooth NULL
Definition: ftsmooth.c:416
struct match match
Definition: match.c:33
GLuint GLfloat * val
Definition: glext.h:7180
const GLubyte * c
Definition: glext.h:8905
_Check_return_ _CRTIMP unsigned int __cdecl _mbsnextc(_In_z_ const unsigned char *_Str)
GLenum src
Definition: glext.h:6340
#define c
Definition: ke_i.h:80