ReactOS
0.4.16-dev-59-gd481587
mbspbrk.c
Go to the documentation of this file.
1
#include <stdlib.h>
2
#include <mbstring.h>
3
4
int
isleadbyte
(
int
byte
);
5
6
/*
7
* not correct
8
*
9
* @implemented
10
*/
11
unsigned
char
*
_mbspbrk
(
const
unsigned
char
*
s1
,
const
unsigned
char
*
s2
)
12
{
13
const
unsigned
char
*
p
;
14
15
while
(*
s1
)
16
{
17
for
(
p
=
s2
; *
p
;
p
+= (
isleadbyte
(*
p
) ? 2 : 1))
18
{
19
if
(*
p
== *
s1
)
20
if
(!
isleadbyte
(*
p
) || (*(
p
+1) == *(
s1
+ 1)))
21
return
(
unsigned
char
*)
s1
;
22
}
23
s1
+= (
isleadbyte
(*
s1
) ? 2 : 1);
24
}
25
return
NULL
;
26
}
NULL
#define NULL
Definition:
types.h:112
p
GLfloat GLfloat p
Definition:
glext.h:8902
isleadbyte
#define isleadbyte(_c)
Definition:
wchar.h:596
_mbspbrk
unsigned char * _mbspbrk(const unsigned char *s1, const unsigned char *s2)
Definition:
mbspbrk.c:11
s1
struct S1 s1
s2
struct S2 s2
sdk
lib
crt
mbstring
mbspbrk.c
Generated on Thu Sep 19 2024 06:13:04 for ReactOS by
1.9.6