projects
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Use free Windows DDK and compile with latest MinGW releases.
[reactos.git]
/
reactos
/
lib
/
msvcrt
/
mbstring
/
mbslen.c
1
#include <msvcrti.h>
2
3
4
size_t
_mbclen2
(
const unsigned int
s
);
5
6
size_t
_mbslen
(
const unsigned char
*
str
)
7
{
8
int
i
=
0
;
9
unsigned char
*
s
;
10
11
if
(
str
==
0
)
12
return
0
;
13
14
for
(
s
= (
unsigned char
*)
str
; *
s
;
s
+=
_mbclen2
(*
s
),
i
++);
15
return
i
;
16
}