summaryrefslogtreecommitdiff
path: root/src/ctype/isalpha.c
blob: f155d3aa97048880a109a8838b79be1e946e2dc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <ctype.h>
#include "libc.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);