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

int isalnum(int c)
{
	return isalpha(c) || isdigit(c);
}

__weak int isalnum_l(int c, locale_t __unused locale)
{
	return isalnum(c);
}