mirror of
https://github.com/reactos/reactos.git
synced 2025-07-28 04:11:50 +00:00
Create a branch for header work.
svn path=/branches/header-work/; revision=45691
This commit is contained in:
parent
14fe274b1c
commit
9ea495ba33
19538 changed files with 0 additions and 1063950 deletions
33
lib/sdk/crt/mbstring/mbsspn.c
Normal file
33
lib/sdk/crt/mbstring/mbsspn.c
Normal file
|
@ -0,0 +1,33 @@
|
|||
/*
|
||||
* 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue