mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:34:59 +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
|
@ -4,6 +4,7 @@
|
|||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <AK/CharacterTypes.h>
|
||||
#include <AK/DeprecatedString.h>
|
||||
#include <AK/LexicalPath.h>
|
||||
#include <AK/StringBuilder.h>
|
||||
|
@ -338,7 +339,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
|
||||
out(" Magic: ");
|
||||
for (char i : StringView { header.e_ident, sizeof(header.e_ident) }) {
|
||||
if (isprint(i)) {
|
||||
if (is_ascii_printable(i)) {
|
||||
out("{:c} ", i);
|
||||
} else {
|
||||
out("{:02x} ", i);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue