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