#include #include #include #include char *strdup(char *orig) { u32 s_orig = strlen(orig); char *ret = (char *)malloc(s_orig + 1); strcpy(ret, orig); return ret; }