summaryrefslogtreecommitdiff
path: root/lib/libc/ctype/islower.c
blob: 8438c8d1cb8a7def541c44d605722a57c4679a6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <ctype.h>     // for islower, islower_l, locale_t
#include <sys/cdefs.h> // for __unused, __weak

int islower(int c)
{
	return (unsigned)c - 'a' < 26;
}

__weak int islower_l(int c, locale_t __unused locale)
{
	return islower(c);
}