summaryrefslogtreecommitdiff
path: root/src/ctype/toupper.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ctype/toupper.c')
-rw-r--r--src/ctype/toupper.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ctype/toupper.c b/src/ctype/toupper.c
index 1799f030..bbf4e06e 100644
--- a/src/ctype/toupper.c
+++ b/src/ctype/toupper.c
@@ -1,7 +1,15 @@
#include <ctype.h>
+#include "libc.h"
int toupper(int c)
{
if (islower(c)) return c & 0x5f;
return c;
}
+
+int __toupper_l(int c, locale_t l)
+{
+ return toupper(c);
+}
+
+weak_alias(__toupper_l, toupper_l);