/*
 * xstrdup() duplicates a string or dies
 */
char *
xstrdup(s)
char *s;
{
    char *xmalloc();
    register char *tmp;

    if (tmp=xmalloc(strlen(s)+1))
	strcpy(tmp, s);
    return tmp;
} /* xstrdup */