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.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ctype/isupper.c b/src/ctype/isupper.c
new file mode 100644
index 0000000..bfd15ac
--- /dev/null
+++ b/src/ctype/isupper.c
@@ -0,0 +1,14 @@
+#include <ctype.h>
+#undef isupper
+
+int isupper(int c)
+{
+ return (unsigned)c-'A' < 26;
+}
+
+int __isupper_l(int c, locale_t l)
+{
+ return isupper(c);
+}
+
+weak_alias(__isupper_l, isupper_l);