aboutsummaryrefslogtreecommitdiffstats
path: root/core/include
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2011-04-10 09:38:45 -0700
committerEric W. Biederman <ebiederm@xmission.com>2011-04-12 14:41:06 -0700
commit6372d4c8c5c56bb5381823131ef0995f351c4111 (patch)
treecc05bb10e08a368252c6a820da430ecb20294c5e /core/include
parentd87ae0022e613ecee4f2627c949cd6f67c980ba7 (diff)
downloadsyslinux-6372d4c8c5c56bb5381823131ef0995f351c4111.tar.gz
syslinux-6372d4c8c5c56bb5381823131ef0995f351c4111.tar.xz
syslinux-6372d4c8c5c56bb5381823131ef0995f351c4111.zip
core: Add isspace to ctype.h
This is needed for the http file downloader. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'core/include')
-rw-r--r--core/include/ctype.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/core/include/ctype.h b/core/include/ctype.h
index 5c6d4cb4..6c7f57f4 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 */