aboutsummaryrefslogtreecommitdiff
path: root/src/mlibc/string/strdup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mlibc/string/strdup.c')
-rw-r--r--src/mlibc/string/strdup.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/mlibc/string/strdup.c b/src/mlibc/string/strdup.c
deleted file mode 100644
index 0aa36f7..0000000
--- a/src/mlibc/string/strdup.c
+++ /dev/null
@@ -1,10 +0,0 @@
-#include <mlibc/string.h>
-#include <mlibc/stdlib.h>
-
-char *strdup(const char *orig)
-{
- size_t s_orig = strlen(orig);
- char *ret = kmalloc(s_orig + 1);
- strcpy(ret, orig);
- return ret;
-} \ No newline at end of file