summaryrefslogtreecommitdiff
path: root/src/ctype/isprint.c
blob: 067275fa03e795ca0603ea1c99239265305c7dc9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <ctype.h>
#include "libc.h"
#undef isprint

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

int __isprint_l(int c, locale_t l)
{
	return isprint(c);
}

weak_alias(__isprint_l, isprint_l);