diff options
Diffstat (limited to 'kernel/libc/ctype/isspace.c')
-rw-r--r-- | kernel/libc/ctype/isspace.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/libc/ctype/isspace.c b/kernel/libc/ctype/isspace.c new file mode 100644 index 0000000..a922d91 --- /dev/null +++ b/kernel/libc/ctype/isspace.c @@ -0,0 +1,5 @@ +#include <ctype.h> + +int isspace(int c) { + return c == ' ' || (unsigned)c - '\t' < 5; +} |