summaryrefslogtreecommitdiff
path: root/src/ctype/isalpha.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ctype/isalpha.c')
-rw-r--r--src/ctype/isalpha.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ctype/isalpha.c b/src/ctype/isalpha.c
new file mode 100644
index 00000000..53e115c2
--- /dev/null
+++ b/src/ctype/isalpha.c
@@ -0,0 +1,7 @@
+#include <ctype.h>
+#undef isalpha
+
+int isalpha(int c)
+{
+ return ((unsigned)c|32)-'a' < 26;
+}