diff options
Diffstat (limited to 'src/userspace/main.c')
-rw-r--r-- | src/userspace/main.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/userspace/main.c b/src/userspace/main.c index 875423d..cdd4130 100644 --- a/src/userspace/main.c +++ b/src/userspace/main.c @@ -3,17 +3,17 @@ 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; + 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() { - // As char[]: 0xC105BFD6 - // As const char *: 0x8048B20 + // As char[]: 0xC105BFD6 + // As const char *: 0x8048B20 - char test[] = "banane"; - syscall_write(test); - syscall_halt(); + char test[] = "banane"; + syscall_write(test); + syscall_halt(); } |