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