#include "prv.h" #include #include #include char *sdup(const char *s) { char *n = malloc(strlen(s) + 1); if (n) strcpy(n, s); else perror("malloc(3)"); return n; }