aboutsummaryrefslogtreecommitdiff
path: root/src/userspace/main.c
diff options
context:
space:
mode:
authorMarvin Borner2019-12-08 12:27:00 +0100
committerMarvin Borner2019-12-08 12:27:00 +0100
commite3c982ee44cff38bd764fbb6ab94972cf868a10a (patch)
tree755ed2716a4a3fb6caf04abaef00a784297692fe /src/userspace/main.c
parentd94b024b73aeca06de417e0fd3c502495312a8b2 (diff)
Working text input!
Diffstat (limited to 'src/userspace/main.c')
-rw-r--r--src/userspace/main.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/userspace/main.c b/src/userspace/main.c
index c85e64d..1e68496 100644
--- a/src/userspace/main.c
+++ b/src/userspace/main.c
@@ -1,5 +1,4 @@
#include <syscall.h>
-#include <mlibc/string.h>
void user_main()
{
@@ -7,9 +6,8 @@ void user_main()
syscall_write(hello);
while (1) {
- char *command = (char *) syscall_read();
- char test[1024];
- strcpy(test, command);
- syscall_write(command);
+ char buffer[20] = {'\0'};
+ syscall_read(buffer);
+ syscall_write(buffer);
};
} \ No newline at end of file