ref: 4afccc571200034864f9290b902fe6dddff4246e 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); }