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