summaryrefslogtreecommitdiff
path: root/lib/libc/ctype/tolower.c
blob: aeb462d89ed9e6dc8cc4af873084cfd73c936969 (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);
}