C/stdlib.h/mblen

Материал из C\C++ эксперт
Перейти к: навигация, поиск

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>