Introducing Radical.sh

Forget Code launches a powerful code generator for building API's

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