int sub_digit(char *str); int check_ecl(char *str);