projects
/
pintos-anon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04dd882
)
Add isblank().
author
Ben Pfaff
<blp@cs.stanford.edu>
Tue, 7 Sep 2004 06:20:53 +0000
(06:20 +0000)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Tue, 7 Sep 2004 06:20:53 +0000
(06:20 +0000)
src/lib/ctype.h
patch
|
blob
|
history
diff --git
a/src/lib/ctype.h
b/src/lib/ctype.h
index d0baf4fef9673526ba8a5b79be73af8f58b9d099..71b432cb00942477f15fde9b6cf03fa897f2d203 100644
(file)
--- 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; }