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