aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/lib/string/strdup.c
diff options
context:
space:
mode:
authorMarvin Borner2020-06-17 18:31:46 +0200
committerMarvin Borner2020-06-17 18:31:46 +0200
commiteed77bd2970a00d1394ed027ceca5b646e4671ce (patch)
treec44643d98aed2b6818f2b33417c0dea9c5853094 /src/kernel/lib/string/strdup.c
parent49dfa1f4021026bf7c4d77817959c8aa24067016 (diff)
Started rewrite
Diffstat (limited to 'src/kernel/lib/string/strdup.c')
-rw-r--r--src/kernel/lib/string/strdup.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/kernel/lib/string/strdup.c b/src/kernel/lib/string/strdup.c
deleted file mode 100644
index 3b138e8..0000000
--- a/src/kernel/lib/string/strdup.c
+++ /dev/null
@@ -1,10 +0,0 @@
-#include <lib/string.h>
-#include <memory/alloc.h>
-
-char *strdup(const char *orig)
-{
- u32 s_orig = strlen(orig);
- char *ret = (char *)malloc(s_orig + 1);
- strcpy(ret, orig);
- return ret;
-} \ No newline at end of file