aboutsummaryrefslogtreecommitdiff
path: root/src/ctype/tolower.c
blob: c285ebc09029bf326a8e87b0ee32b4e9481bfa1a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <ctype.h>

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

int __tolower_l(int c, locale_t l)
{
	return tolower(c);
}

weak_alias(__tolower_l, tolower_l);


#ifdef TEST
int
main(void) {
	return 0;
}
#endif