summaryrefslogtreecommitdiffstats
path: root/lib/libc-headless/ctype/toupper.c
blob: fe1e1e2ffe0f55b2607e26f66011d8fd7a830052 (plain) (blame)
1
2
3
4
5
6
7
8
9
#include <ctype.h>

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