diff options
Diffstat (limited to 'src/libc/ctype.c')
-rw-r--r-- | src/libc/ctype.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libc/ctype.c b/src/libc/ctype.c index fa49a07..de10024 100644 --- a/src/libc/ctype.c +++ b/src/libc/ctype.c @@ -8,6 +8,10 @@ int isalpha(int c) { return islower(c) || isupper(c); } +int isblank(int c) { + return c == ' ' || c == '\t'; +} + int iscntrl(int c) { return c <= 0x1f || c == 0x7f; } |