projects
/
pintos-anon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9b9b554
)
127 is a control character.
author
Ben Pfaff
<blp@cs.stanford.edu>
Fri, 1 Apr 2005 18:43:22 +0000
(18:43 +0000)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Fri, 1 Apr 2005 18:43:22 +0000
(18:43 +0000)
src/lib/ctype.h
patch
|
blob
|
history
diff --git
a/src/lib/ctype.h
b/src/lib/ctype.h
index adc96be2ead8c05213c3d256b38fdbfa3592c2a5..7a2c52dab14727d433f0d942ec53660306fd93bc 100644
(file)
--- a/
src/lib/ctype.h
+++ b/
src/lib/ctype.h
@@
-14,9
+14,9
@@
static inline int isspace (int c) {
|| c == '\r' || c == '\t' || c == '\v');
}
static inline int isblank (int c) { return c == ' ' || c == '\t'; }
|| 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 isgraph (int c) { return c >
32
&& c < 127; }
static inline int isprint (int c) { return c >= 32 && c < 127; }
static inline int isprint (int c) { return c >= 32 && c < 127; }
-static inline int iscntrl (int c) { return c >= 0 && c < 32; }
+static inline int iscntrl (int c) { return c >= 0 && c < 32
|| c == 127
; }
static inline int isascii (int c) { return c >= 0 && c < 128; }
static inline int ispunct (int c) {
return isprint (c) && !isalnum (c) && !isspace (c);
static inline int isascii (int c) { return c >= 0 && c < 128; }
static inline int ispunct (int c) {
return isprint (c) && !isalnum (c) && !isspace (c);