git://git.jankratochvil.net
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[reactos.git]
/
lib
/
crtdll
/
mbstring
/
mbscspn.c
1
#include <crtdll/mbstring.h>
2
// not correct
3
size_t _mbscspn(const unsigned char *s1, const unsigned char *s2)
4
{
5
const char *p, *spanp;
6
char c, sc;
7
8
for (p = s1;;)
9
{
10
c = *p++;
11
spanp = s2;
12
do {
13
if ((sc = *spanp++) == c)
14
return (size_t)(p - 1) - (size_t)s1;
15
} while (sc != 0);
16
}
17
/* NOTREACHED */
18
}