ref: 83d9d3003e108230c4cb8d4bef5e2e1e927c1053 dir: /lib9/strdup.c/
#include "lib9.h" char* strdup(const char *s) { char *os; os = malloc(strlen(s) + 1); if(os == 0) return 0; return strcpy(os, s); }