toaruos/libc/ctype/toupper.c
2018-05-09 17:02:31 +09:00

8 lines
91 B
C

int toupper(int c) {
if (c >= 'a' && c <= 'z') {
return c - 'a' + 'A';
}
return c;
}