ref: 7d06d1d348ce9fb9dc585d81f146e12193be85e4 dir: /src/libscc/xstrdup.c/
#include <string.h> #include <scc/scc.h> char * xstrdup(const char *s) { size_t len = strlen(s) + 1; char *p = xmalloc(len); return memcpy(p, s, len); }