mirror of
https://github.com/reactos/reactos.git
synced 2025-07-23 14:43:47 +00:00
18 lines
260 B
C
18 lines
260 B
C
#include <mbstring.h>
|
|
|
|
size_t _mbclen2(const unsigned int s);
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
size_t _mbslen(const unsigned char *str)
|
|
{
|
|
int i = 0;
|
|
unsigned char *s;
|
|
|
|
if (str == 0)
|
|
return 0;
|
|
|
|
for (s = (unsigned char *)str; *s; s+=_mbclen2(*s),i++);
|
|
return i;
|
|
}
|