This commit is contained in:
Weber 2024-02-21 19:16:57 +00:00
parent e0d6b4ed32
commit b5341ca975

View File

@ -9,7 +9,7 @@ int main() {
line_count++;
} else {
if (!((ch >= 'A' && ch <= 'Z') || (ch >= 'a' && ch <= 'z')) && !(ch >= 32 && ch <= 126)) {
continue; // Skip control characters and non-printable characters
continue;
}
putchar((ch >= 'a' && ch <= 'z') ? (ch - 32) : (ch + 32));
}