1 #include "config.h" 2 3 #include <string.h> 4 5 /* 6 * Duplicate a string. 7 */ 8 char * xstrdup(const char * s)9 xstrdup(const char *s) 10 { 11 return strcpy(xmalloc(strlen(s) + 1), s); 12 } 13