aboutsummaryrefslogtreecommitdiff
path: root/src/userspace/mlibc
diff options
context:
space:
mode:
Diffstat (limited to 'src/userspace/mlibc')
-rw-r--r--src/userspace/mlibc/stdio/getch.c5
-rw-r--r--src/userspace/mlibc/stdio/writec.c4
2 files changed, 5 insertions, 4 deletions
diff --git a/src/userspace/mlibc/stdio/getch.c b/src/userspace/mlibc/stdio/getch.c
index 114b6e0..dc9c40e 100644
--- a/src/userspace/mlibc/stdio/getch.c
+++ b/src/userspace/mlibc/stdio/getch.c
@@ -1,7 +1,6 @@
-// #include <syscall.h>
+#include <syscall.h>
char getch()
{
- // return ((char *) syscall_read())[0];
- return 0;
+ return (char) syscall_readc();
} \ No newline at end of file
diff --git a/src/userspace/mlibc/stdio/writec.c b/src/userspace/mlibc/stdio/writec.c
index 9ffb1a1..ee588e5 100644
--- a/src/userspace/mlibc/stdio/writec.c
+++ b/src/userspace/mlibc/stdio/writec.c
@@ -1,4 +1,6 @@
+#include <syscall.h>
+
void writec(char c)
{
- //
+ syscall_writec(c);
} \ No newline at end of file