ref: 4c09eaec1c1f81e175b6e8b6266e8a2c9aa7afaa
dir: /lib/scc/xstrdup.c/
static char sccsid[] = "@(#) ./lib/scc/xstrdup.c"; #include <string.h> #include "../../inc/scc.h" char * xstrdup(const char *s) { size_t len = strlen(s) + 1; char *p = xmalloc(len); return memcpy(p, s, len); }