mblen - Get the length of a multibyte character from the given string in C



  #include <stdlib.h>
  #include <stdio.h>

  int main(void){
     char *md = "asdfasdf";

     printf("%d", mblen(md, 2));
  }

Output:1