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