From 821eb5ff9ed60d4b1c7a50ebf406f22bc0da9bd4 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Sun, 21 Apr 2024 18:39:36 +0200 Subject: LibC: Add different isX() functions --- userland/libc/ctype/iscntrl.c | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 userland/libc/ctype/iscntrl.c (limited to 'userland/libc/ctype/iscntrl.c') diff --git a/userland/libc/ctype/iscntrl.c b/userland/libc/ctype/iscntrl.c new file mode 100644 index 0000000..92ed7f0 --- /dev/null +++ b/userland/libc/ctype/iscntrl.c @@ -0,0 +1,6 @@ +#include + +int iscntrl(int c) +{ + return (unsigned)c < 0x20 || c == 0x7f; +} -- cgit v1.2.3