Closed Gabi201265 closed 2 months ago
Everything that is not a digit and is not a lower of upper character is considered a special character.
static void check_str_counters(const char *str, int *lower, int *upper,
int *digit, int *special) {
for (const char *i = str; *i; i++) {
if (islower(*i)) {
(*lower)++;
} else if (isupper(*i)) {
(*upper)++;
} else if (isdigit(*i)) {
(*digit)++;
} else {
(*special)++;
}
}
}
Hi,
I have a question. What special characters are allowed by the extension?
Best regards, Gabriel Leroux