summaryrefslogtreecommitdiff
path: root/com32/include/ctype.h
diff options
context:
space:
mode:
authorErwan Velu <erwanaliasr1@gmail.com>2011-02-07 23:11:39 +0100
committerErwan Velu <erwanaliasr1@gmail.com>2011-02-07 23:11:39 +0100
commit6d0cfd4b044a0e8294d27921cef9a10ce2cbaa7a (patch)
treeb3ff970599742ac5065a8a95ede9293c3ffe6e1d /com32/include/ctype.h
parentc030de4a10babd0b7f297ed952678676838927d4 (diff)
downloadsyslinux-6d0cfd4b044a0e8294d27921cef9a10ce2cbaa7a.tar.gz
com32: single instance of skipspace()
no need to keep several versions of it.
Diffstat (limited to 'com32/include/ctype.h')
-rw-r--r--com32/include/ctype.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/com32/include/ctype.h b/com32/include/ctype.h
index 28fae9fd..7709c037 100644
--- a/com32/include/ctype.h
+++ b/com32/include/ctype.h
@@ -114,4 +114,11 @@ __ctype_inline int tolower(int __c)
return isupper(__c) ? _tolower(__c) : __c;
}
+__ctype_inline char *skipspace(const char *p)
+{
+ while (isspace((unsigned char)*p))
+ p++;
+ return (char *)p;
+}
+
#endif /* _CTYPE_H */