#include #include char *strdup(const char *s) { char *s1=malloc(strlen_plus_one(s)); if (s1) strcpy(s1,s); return s1; }