summaryrefslogtreecommitdiff
path: root/userland/libc/ctype/toupper.c
blob: 599a0ffafa9af8942f14ef41ea80ff38cc0e9474 (plain)
1
2
3
4
5
6
7
8
#include <ctype.h>

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