toaruos/libc/ctype/tolower.c

7 lines
90 B
C
Raw Normal View History

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