summaryrefslogtreecommitdiff
path: root/lib/libc/ctype/tolower.c
blob: abeab42ab12e9f83d1c23c2fb115acd5e58b0dc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <libc.h>
#include <ctype.h>

int tolower(int c)
{
	if (isupper(c))
		return c | 32;
	return c;
}

weak int tolower_l(int c, locale_t unused locale)
{
	return tolower(c);
}