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