1 #include <locale.h> 2 #include <limits.h> 3 #include <stdio.h> 4 5 int main(int argc, char** argv) { 6 7 setlocale(LC_CTYPE, ""); 8 9 printf("Len: %i\n", mblen(argv[1], SSIZE_MAX)); 10 11 return 0; 12 } 13