1
0
Fork 0

Apparently ignoring letter case is a bug

This commit is contained in:
Arti Zirk 2016-10-10 20:25:13 +03:00
parent 8b64aca736
commit be366ed50e
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ int main (void)
fscanf(stdin, "%c", &month_first_leter);
fprintf(stdout, "%c\n", month_first_leter);
for (int i = 0; i < 6; i++) {
if (!strncmp(strupr(&month_first_leter), ENG_MONTH[i], 1)) {
if (!strncmp(&month_first_leter, ENG_MONTH[i], 1)) {
fprintf(stdout, "%s\n", ENG_MONTH[i]);
}
}