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