aboutsummaryrefslogtreecommitdiff
path: root/src/ctype/isupper.c
blob: 1c839c8de38e12cf61ab6a9944cce8c8211367d2 (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>
#undef isupper

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

int __isupper_l(int c, locale_t l)
{
	return isupper(c);
}

weak_alias(__isupper_l, isupper_l);


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