summaryrefslogtreecommitdiff
path: root/kernel/libc/ctype/tolower.c
blob: c14ea5410fbf82e7d82469e3acd2085268e7e8f6 (plain)
1
2
3
4
5
6
7
8
#include <ctype.h>

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