mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:27:43 +00:00
LibC: Fix broken isprint(). I had misunderstood what's considered printable.
This commit is contained in:
parent
faaa0dbf1d
commit
e683f611f1
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ int ispunct(int c)
|
||||||
|
|
||||||
int isprint(int c)
|
int isprint(int c)
|
||||||
{
|
{
|
||||||
return isdigit(c) || isupper(c) || islower(c) || ispunct(c) || isspace(c);
|
return c >= 0x20 && c != 0x7f;
|
||||||
}
|
}
|
||||||
|
|
||||||
int isalnum(int c)
|
int isalnum(int c)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue