capslock
This commit is contained in:
parent
f4bfa5874a
commit
9a9e86b386
11
cv1/program.c
Normal file
11
cv1/program.c
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
#include <"stdio.h">
|
||||||
|
|
||||||
|
char simulate_caps_lock(char c) {
|
||||||
|
if ('a' <= c && c <= 'z') {
|
||||||
|
return c - ('a' - 'A');
|
||||||
|
} else if ('A' <= c && c <= 'Z') {
|
||||||
|
return c + ('a' - 'A');
|
||||||
|
} else {
|
||||||
|
return c;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user