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