:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[reactos.git] / lib / crtdll / mbstring / mbstrlen.c
1 #include <crtdll/mbstring.h>
2 #include <crtdll/stdlib.h>
3
4 size_t _mbstrlen( const char *string )
5 {
6         char *s = (char *)string;
7         size_t i = 0;
8
9         while ( *s != 0 ) {
10                 if ( _ismbblead(*s) )
11                         s++;
12                 s++;
13                 i++;
14         }
15         return i;
16 }