diff options
author | Anton Kling <anton@kling.gg> | 2024-04-21 18:39:36 +0200 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-04-21 19:29:50 +0200 |
commit | 821eb5ff9ed60d4b1c7a50ebf406f22bc0da9bd4 (patch) | |
tree | 4562261e5bd41e215c277998f20d736d28a33430 /userland/libc/ctype/iscntrl.c | |
parent | a8959b3da1b160c84da6ead6f12188b1824d76e6 (diff) |
LibC: Add different isX() functions
Diffstat (limited to 'userland/libc/ctype/iscntrl.c')
-rw-r--r-- | userland/libc/ctype/iscntrl.c | 6 |
1 files changed, 6 insertions, 0 deletions
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 <ctype.h> + +int iscntrl(int c) +{ + return (unsigned)c < 0x20 || c == 0x7f; +} |