mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
Utilities: Replace ctype.h usage with AK/CharacterTypes.h
This commit is contained in:
parent
ee4e9b807a
commit
0f95ff64ed
Notes:
sideshowbarker
2024-07-17 08:43:11 +09:00
Author: https://github.com/AtkinsSJ
Commit: 0f95ff64ed
Pull-request: https://github.com/SerenityOS/serenity/pull/17793
Reviewed-by: https://github.com/krkk
Reviewed-by: https://github.com/trflynn89
14 changed files with 51 additions and 41 deletions
|
@ -5,6 +5,7 @@
|
|||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <AK/CharacterTypes.h>
|
||||
#include <AK/DeprecatedString.h>
|
||||
#include <LibCore/ProcessStatisticsReader.h>
|
||||
#include <LibCore/System.h>
|
||||
|
@ -48,7 +49,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
|
||||
Optional<unsigned> number;
|
||||
|
||||
if (isalpha(arguments.argv[1][1])) {
|
||||
if (is_ascii_alpha(arguments.argv[1][1])) {
|
||||
int value = getsignalbyname(&arguments.argv[1][1]);
|
||||
if (value >= 0 && value < NSIG)
|
||||
number = value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue