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

7 lines
90 B
C

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