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

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