blob: 00bb8632f391280c7ac8cc5d0241d1da5cd69ba8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
#include <lib/string.h>
#include <memory/alloc.h>
char *strdup(const char *orig)
{
u32 s_orig = strlen(orig);
char *ret = (char *)kmalloc(s_orig + 1);
strcpy(ret, orig);
return ret;
}
|