shift lowercase input chars to uppercase

This commit is contained in:
ari melody 2024-02-12 17:43:19 +00:00
parent f127a1a249
commit 431c198138
Signed by: ari
GPG key ID: CF99829C92678188

1
main.c
View file

@ -63,6 +63,7 @@ int main() {
while (1) { while (1) {
unsigned char input = getchar(); unsigned char input = getchar();
if (input == '\n') break; if (input == '\n') break;
if (input >= 'a' && input <= 'z') input -= 32;
last_char = input; last_char = input;
if (input < '0' || input > '9') continue; if (input < '0' || input > '9') continue;