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

int isgraph(int c)
{
	return (unsigned)c - 0x21 < 0x5e;
}

__weak int isgraph_l(int c, locale_t __unused locale)
{
	return isgraph(c);
}