blob: a42b02db384f2d648f44b232576ca130dd82f003 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
char *strdup(char *orig)
{
u32 s_orig = strlen(orig);
char *ret = (char *)malloc(s_orig + 1);
strcpy(ret, orig);
return ret;
}
|