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-2003091401
[reactos.git]
/
lib
/
crtdll
/
mbstring
/
mbscspn.c
1
#include <msvcrt/mbstring.h>
2
3
/*
4
* FIXME not correct
5
*
6
* @unimplemented
7
*/
8
size_t _mbscspn(const unsigned char *s1, const unsigned char *s2)
9
{
10
const char *p, *spanp;
11
char c, sc;
12
13
for (p = s1;;)
14
{
15
c = *p++;
16
spanp = s2;
17
do {
18
if ((sc = *spanp++) == c)
19
return (size_t)(p - 1) - (size_t)s1;
20
} while (sc != 0);
21
}
22
/* NOTREACHED */
23
}