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