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