reactos/lib/sdk/crt/mbstring/mbstrlen.c
Art Yerkes c501d8112c Create a branch for network fixes.
svn path=/branches/aicom-network-fixes/; revision=34994
2008-08-01 11:32:26 +00:00

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;
}