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