projects
/
platform
/
upstream
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d87ae00
)
core: Add isspace to ctype.h
author
Eric W. Biederman
<ebiederm@xmission.com>
Sun, 10 Apr 2011 16:38:45 +0000
(09:38 -0700)
committer
Eric W. Biederman
<ebiederm@xmission.com>
Tue, 12 Apr 2011 21:41:06 +0000
(14:41 -0700)
This is needed for the http file downloader.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
core/include/ctype.h
patch
|
blob
|
history
diff --git
a/core/include/ctype.h
b/core/include/ctype.h
index
5c6d4cb
..
6c7f57f
100644
(file)
--- a/
core/include/ctype.h
+++ b/
core/include/ctype.h
@@
-22,4
+22,17
@@
static inline int tolower(int c)
return c;
}
+static inline int isspace(int ch)
+{
+ int space = 0;
+ if ((ch == ' ') ||
+ (ch == '\f') ||
+ (ch == '\n') ||
+ (ch == '\r') ||
+ (ch == '\t') ||
+ (ch == '\v'))
+ space = 1;
+ return space;
+}
+
#endif /* CTYPE_H */