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