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-2003021201
[reactos.git]
/
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
}