diff options
Diffstat (limited to 'src/kernel/lib/string/strdup.c')
-rw-r--r-- | src/kernel/lib/string/strdup.c | 10 |
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 |