ReactOS  0.4.14-dev-49-gfb4591c
mbsspn.c File Reference
#include <precomp.h>
#include <mbstring.h>
Include dependency graph for mbsspn.c:

Go to the source code of this file.

Functions

size_t _mbsspn (const unsigned char *str1, const unsigned char *str2)
 

Function Documentation

◆ _mbsspn()

size_t _mbsspn ( const unsigned char str1,
const unsigned char str2 
)

Definition at line 18 of file mbsspn.c.

19 {
20  int c;
21  const unsigned char *save = str1;
22 
23  while ((c = _mbsnextc (str1))) {
24 
25  if (_mbschr (str2, c) == 0)
26  break;
27 
28  str1 = _mbsinc ((unsigned char *) str1);
29 
30  }
31 
32  return str1 - save;
33 }
_Check_return_ _CRTIMP _CONST_RETURN unsigned char *__cdecl _mbschr(_In_z_ const unsigned char *_Str, _In_ unsigned int _Ch)
const GLubyte * c
Definition: glext.h:8905
_Check_return_ _CRTIMP unsigned char *__cdecl _mbsinc(_In_z_ const unsigned char *_Ptr)
_Check_return_ _CRTIMP unsigned int __cdecl _mbsnextc(_In_z_ const unsigned char *_Str)
#define c
Definition: ke_i.h:80