aboutsummaryrefslogtreecommitdiff
path: root/ft_tolower.c
blob: 5b5ee01017942378a4eaac3b53b47481c568667b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
int ft_tolower(int c)
{
    unsigned char uc;

    uc = c;
    /* if (c < -1) */
    /*     return (c + 256); */

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