Fix isprint for extended ASCII
This commit is contained in:
parent
87ec15b85b
commit
cec1d8e74d
@ -1,5 +1,5 @@
|
||||
#include <ctype.h>
|
||||
|
||||
int isprint(int ch) {
|
||||
return ch >= ' ' && ch != 127;
|
||||
return ch >= ' ' && ch != 127 && ch < 255;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user