ReactOS 0.4.15-dev-7906-g1b85a5f
mbslen.c File Reference
#include <mbstring.h>
Include dependency graph for mbslen.c:

Go to the source code of this file.

Functions

size_t _mbslen (const unsigned char *str)
 

Function Documentation

◆ _mbslen()

size_t _mbslen ( const unsigned char str)

Definition at line 17 of file mbslen.c.

18{
19 size_t len = 0;
20 while(*str)
21 {
22 if (_ismbblead(*str))
23 {
24 str++;
25 if (!*str) /* count only full chars */
26 break;
27 }
28 str++;
29 len++;
30 }
31 return len;
32}
GLenum GLsizei len
Definition: glext.h:6722
int __cdecl _ismbblead(unsigned int)
Definition: ismblead.c:20
const WCHAR * str