ref: 600bbfe4aaa9ad0f73d8d73eef1b7670e5f7d3a3 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); }