summaryrefslogtreecommitdiff
path: root/kernel/libc/string
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-06-09 22:05:53 +0200
committerAnton Kling <anton@kling.gg>2024-06-09 22:05:53 +0200
commit15003d1b0abccc8bcef84386c4a6da176e41f883 (patch)
treed4f8c4f1602ee9e6c4332f3b0585d0e284d0f695 /kernel/libc/string
parentddd796325c9c703f007f046ed9f6fd9eb0ba6383 (diff)
Add UDP
Diffstat (limited to 'kernel/libc/string')
-rw-r--r--kernel/libc/string/copy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/libc/string/copy.c b/kernel/libc/string/copy.c
index 4acbbf4..3ab5618 100644
--- a/kernel/libc/string/copy.c
+++ b/kernel/libc/string/copy.c
@@ -2,6 +2,7 @@
#include <kmalloc.h>
#include <stddef.h>
#include <string.h>
+#include <mmu.h>
char *copy_and_allocate_string(const char *s) {
size_t l = strlen(s) + 1;