mirror of
https://github.com/reactos/reactos.git
synced 2024-11-11 01:04:11 +00:00
c424146e2c
svn path=/branches/cmake-bringup/; revision=48236
33 lines
620 B
C
33 lines
620 B
C
/*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS system libraries
|
|
* FILE: lib/sdk/crt/mbstring/ismbpun.c
|
|
* PURPOSE:
|
|
* PROGRAMER:
|
|
* UPDATE HISTORY:
|
|
* 05/30/08: Samuel Serapion adapted from PROJECT C Library
|
|
*
|
|
*/
|
|
|
|
#include <precomp.h>
|
|
#include <mbstring.h>
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
size_t _mbsspn (const unsigned char *str1, const unsigned char *str2)
|
|
{
|
|
int c;
|
|
const unsigned char *save = str1;
|
|
|
|
while ((c = _mbsnextc (str1))) {
|
|
|
|
if (_mbschr (str2, c) == 0)
|
|
break;
|
|
|
|
str1 = _mbsinc ((unsigned char *) str1);
|
|
|
|
}
|
|
|
|
return str1 - save;
|
|
}
|