summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/liblatin1/latin1-isprint.c
blob: 9493892b1a2e115d86c97eccad8b976be6668bf7 (plain)
1
2
3
4
5
6
#include <ctype.h>

int isprint(int x) {
  unsigned char c=x&0xff;
  return (c>=32 && c<=126) || (c>=160 && c<=255);
}