aboutsummaryrefslogtreecommitdiff
path: root/src/userspace
diff options
context:
space:
mode:
authorMarvin Borner2020-04-28 18:32:36 +0200
committerMarvin Borner2020-04-28 18:32:36 +0200
commit4b8518b4e791c68154ec52badcc921b62afafb49 (patch)
tree9c855266cf7451f503bf3cb849e63ac72ae48e74 /src/userspace
parent46007d2598b7aef13895b21669cfb6f24272e5fe (diff)
Maaaany fixes...
Sorry for the increasingly worse-getting commit messages :D
Diffstat (limited to 'src/userspace')
-rw-r--r--src/userspace/main.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/userspace/main.c b/src/userspace/main.c
index 7a18f85..4a8ff33 100644
--- a/src/userspace/main.c
+++ b/src/userspace/main.c
@@ -1,20 +1,13 @@
#include <syscall.h>
#include <mlibc/stdlib.h>
-int32_t starts_with(const char *a, const char *b)
-{
- size_t length_pre = strlen(b);
- size_t length_main = strlen(a);
- return length_main < length_pre ? 0 : memcmp(b, a, length_pre) == 0;
-}
-
void main()
{
syscall_halt();
// As char[]: 0xC105BFD6
// As const char *: 0x8048B20
- char test[] = "banane";
- syscall_write(test);
- syscall_halt();
+ /* char test[] = "banane"; */
+ /* syscall_write(test); */
+ /* syscall_halt(); */
} \ No newline at end of file