blob: e77536cf67749c8447efd276c2a7e31fb7aa1241 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
#include <mlibc/stdlib.h>
#include <mlibc/stdlib.h>
char *strdup(const char *orig)
{
// size_t s_orig = strlen(orig);
char *ret = 0;
// kmalloc(s_orig + 1);
strcpy(ret, orig);
return ret;
}
|