mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:07:36 +00:00
Utilities: Replace ctype.h usage with AK/CharacterTypes.h
This commit is contained in:
parent
ee4e9b807a
commit
0f95ff64ed
14 changed files with 51 additions and 41 deletions
|
@ -6,6 +6,7 @@
|
|||
*/
|
||||
|
||||
#include <AK/Array.h>
|
||||
#include <AK/CharacterTypes.h>
|
||||
#include <LibCore/ArgsParser.h>
|
||||
#include <LibCore/File.h>
|
||||
#include <LibCore/System.h>
|
||||
|
@ -56,7 +57,7 @@ ErrorOr<int> serenity_main(Main::Arguments args)
|
|||
out(" |");
|
||||
|
||||
for (auto const& byte : line) {
|
||||
if (isprint(byte))
|
||||
if (is_ascii_printable(byte))
|
||||
putchar(byte);
|
||||
else
|
||||
putchar('.');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue