1 /* xstrdup.c -- Duplicate a string in memory, using xmalloc.
2 This trivial function is in the public domain.
3 Ian Lance Taylor, Cygnus Support, December 1995. */
12 #include "libiberty.h"
18 register size_t len = strlen (s) + 1;
19 register char *ret = xmalloc (len);