Apparently ignoring letter case is a bug
This commit is contained in:
parent
8b64aca736
commit
be366ed50e
@ -37,7 +37,7 @@ int main (void)
|
|||||||
fscanf(stdin, "%c", &month_first_leter);
|
fscanf(stdin, "%c", &month_first_leter);
|
||||||
fprintf(stdout, "%c\n", month_first_leter);
|
fprintf(stdout, "%c\n", month_first_leter);
|
||||||
for (int i = 0; i < 6; i++) {
|
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]);
|
fprintf(stdout, "%s\n", ENG_MONTH[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user