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