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
/
msvcrt
/
wstring
/
wcsspn.c
1
#include <msvcrt/string.h>
2
3
/*
4
* @implemented
5
*/
6
size_t wcsspn(const wchar_t *str,const wchar_t *accept)
7
{
8
wchar_t *s;
9
wchar_t *t;
10
s=(wchar_t *)str;
11
do {
12
t=(wchar_t *)accept;
13
while (*t) {
14
if (*t==*s)
15
break;
16
t++;
17
}
18
if (!*t)
19
break;
20
s++;
21
} while (*s);
22
return s-str; /* nr of wchars */
23
}