From: Ben Pfaff Date: Tue, 7 Sep 2004 06:20:53 +0000 (+0000) Subject: Add isblank(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4e51cf599d385832ea60b1cc1813212b569c854;p=pintos-anon Add isblank(). --- 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; }