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