Fix isprint for extended ASCII

This commit is contained in:
Mark 2020-07-24 14:34:22 +03:00
parent 87ec15b85b
commit cec1d8e74d

View File

@ -1,5 +1,5 @@
#include <ctype.h>
int isprint(int ch) {
return ch >= ' ' && ch != 127;
return ch >= ' ' && ch != 127 && ch < 255;
}