git://git.jankratochvil.net
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
06386b2675652ee8e85cbae61f06b5085f3c21de
[reactos.git]
/
lib
/
msvcrt
/
mbstring
/
mbslen.c
1
#include <msvcrt/mbstring.h>
2
3
size_t _mbclen2(const unsigned int s);
4
5
size_t _mbslen(const unsigned char *str)
6
{
7
int i = 0;
8
unsigned char *s;
9
10
if (str == 0)
11
return 0;
12
13
for (s = (unsigned char *)str; *s; s+=_mbclen2(*s),i++);
14
return i;
15
}