summaryrefslogtreecommitdiff
path: root/LibC/ctype.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'LibC/ctype.cpp')
-rw-r--r--LibC/ctype.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/LibC/ctype.cpp b/LibC/ctype.cpp
index ba4eb48a2b..af37f95036 100644
--- a/LibC/ctype.cpp
+++ b/LibC/ctype.cpp
@@ -1,3 +1,16 @@
#include <ctype.h>
#include <string.h>
+int __tolower(int c)
+{
+ if (c >= 'A' && c <= 'Z')
+ return c | 0x20;
+ return c;
+}
+
+int __toupper(int c)
+{
+ if (c >= 'a' && c <= 'z')
+ return c & ~0x20;
+ return c;
+}