From c4e51cf599d385832ea60b1cc1813212b569c854 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 7 Sep 2004 06:20:53 +0000 Subject: [PATCH] Add isblank(). --- src/lib/ctype.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/ctype.h b/src/lib/ctype.h index d0baf4f..71b432c 100644 --- a/src/lib/ctype.h +++ b/src/lib/ctype.h @@ -13,6 +13,7 @@ static inline int isspace (int c) { return (c == ' ' || c == '\f' || c == '\n' || c == '\r' || c == '\t' || c == '\v'); } +static inline int isblank (int c) { return c == ' ' || c == '\t'; } static inline int isgraph (int c) { return c >= 33 && c < 127; } static inline int isprint (int c) { return c >= 32 && c < 127; } static inline int iscntrl (int c) { return c >= 0 && c < 32; } -- 2.30.2