From eed77bd2970a00d1394ed027ceca5b646e4671ce Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 17 Jun 2020 18:31:46 +0200 Subject: Started rewrite --- src/kernel/lib/string/strdup.c | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 src/kernel/lib/string/strdup.c (limited to 'src/kernel/lib/string/strdup.c') 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 -#include - -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 -- cgit v1.2.3