summaryrefslogtreecommitdiff
path: root/src/ctype/isalpha.c
blob: a87a93759869df31a40374efe3c9e10b3b21d4a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <ctype.h>
#undef isalpha

int isalpha(int c)
{
	return ((unsigned)c|32)-'a' < 26;
}

int __isalpha_l(int c, locale_t l)
{
	return isalpha(c);
}

weak_alias(__isalpha_l, isalpha_l);