projects
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Added binary and unicode file i/o support to msvcrt.
[reactos.git]
/
reactos
/
lib
/
crtdll
/
mbstring
/
mbspbrk.c
1
#include <msvcrt/mbstring.h>
2
// not correct
3
unsigned char
*
_mbspbrk
(
const unsigned char
*
s1
,
const unsigned char
*
s2
)
4
{
5
const char
*
scanp
;
6
int
c
,
sc
;
7
8
while
((
c
= *
s1
++) !=
0
)
9
{
10
for
(
scanp
=
s2
; (
sc
= *
scanp
++) !=
0
;)
11
if
(
sc
==
c
)
12
return
(
unsigned char
*)((
char
*)
s1
- (
char
*)
1
);
13
}
14
return
0
;
15
}