ref: a62654ed1b81fb99271d6a7e8ebe7a870ea1099c 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); }