mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 12:35:14 +00:00
LibC: Fix broken isprint(). I had misunderstood what's considered printable.
This commit is contained in:
parent
faaa0dbf1d
commit
e683f611f1
Notes:
sideshowbarker
2024-07-19 15:57:53 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/e683f611f19
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ int ispunct(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)
|
||||
|
|
Loading…
Add table
Reference in a new issue