ref: ff9c7adf8c9068f8be72f7b1cff723224bb03719
dir: /src/libscc/xstrdup.c/
static char sccsid[] = "@(#) ./lib/scc/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); }