mirror of
https://github.com/reactos/reactos.git
synced 2025-07-23 08:14:16 +00:00
16 lines
No EOL
223 B
C
16 lines
No EOL
223 B
C
#include <msvcrt/mbstring.h>
|
|
#include <msvcrt/stdlib.h>
|
|
|
|
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;
|
|
} |