mblen: get the length of a multibyte character *str
//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*/
Related examples in the same category