blob: 6a4fa861cfd927577def5838cf2493299cba4b3a (
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;
}
|