toaruos/libc/ctype/toupper.c

8 lines
91 B
C
Raw Normal View History

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