mirror of
https://github.com/reactos/reactos.git
synced 2025-07-25 23:53:43 +00:00
19 lines
233 B
C
19 lines
233 B
C
#include <mbstring.h>
|
|
#include <stdlib.h>
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
size_t _mbstrlen( const char *string )
|
|
{
|
|
char *s = (char *)string;
|
|
size_t i = 0;
|
|
|
|
while ( *s != 0 ) {
|
|
if ( _ismbblead(*s) )
|
|
s++;
|
|
s++;
|
|
i++;
|
|
}
|
|
return i;
|
|
}
|