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