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