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