C/stdlib.h/mblen
mblen: get the length of a multibyte character *str
<source lang="cpp">
//Declaration: int mblen(const char *str, size_t size);
#include <stdlib.h> #include <stdio.h> int main(void){ char *md = "asdfasdf"; printf("%d", mblen(md, 2)); }
/* 1*/
</source>