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

int isprint(int c)
{
	return (unsigned)c - 0x20 < 0x5f;
}

__weak int isprint_l(int c, locale_t __unused locale)
{
	return isprint(c);
}