diff options
author | dzwdz | 2023-08-27 02:06:32 +0200 |
---|---|---|
committer | dzwdz | 2023-08-27 02:06:32 +0200 |
commit | e43939bcc6123e02314aa403eef94d5ace441f7f (patch) | |
tree | ac0cea10e8708ae1a6a7a400257c4bc59175a91f /src/libc/ctype.c | |
parent | 1f938c20b4a82ca1267ab9a1ec0922878a21ca6b (diff) |
ports: qbe, cproc :^)
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; } |