ref: eb0e026c241bd3afc6a10a6e2c7417de1b91f7e8 dir: /libkern/strdup.c/
#include <lib9.h> char* strdup(char *s) { char *os; os = malloc(strlen(s) + 1); if(os == 0) return 0; return strcpy(os, s); }