[syslinux:lwip] core: Add isspace to ctype.h
syslinux-bot for Eric W. Biederman
ebiederm at xmission.com
Fri Apr 22 20:05:59 PDT 2011
Commit-ID: 6372d4c8c5c56bb5381823131ef0995f351c4111
Gitweb: http://syslinux.zytor.com/commit/6372d4c8c5c56bb5381823131ef0995f351c4111
Author: Eric W. Biederman <ebiederm at xmission.com>
AuthorDate: Sun, 10 Apr 2011 09:38:45 -0700
Committer: Eric W. Biederman <ebiederm at xmission.com>
CommitDate: Tue, 12 Apr 2011 14:41:06 -0700
core: Add isspace to ctype.h
This is needed for the http file downloader.
Signed-off-by: Eric W. Biederman <ebiederm at xmission.com>
---
core/include/ctype.h | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/core/include/ctype.h b/core/include/ctype.h
index 5c6d4cb..6c7f57f 100644
--- 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 */
More information about the Syslinux-commits
mailing list