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

int isupper(int c)
{
	return (unsigned)c - 'A' < 26;
}

__weak int isupper_l(int c, locale_t __unused locale)
{
	return isupper(c);
}