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