#include "config.h" #ifndef lint static char rcsid[] ATTR_UNUSED = "$Id$"; #endif /* This part of code is a public domain */ #ifdef HAVE_STDLIB_H #include #endif #ifdef HAVE_STRING_H #include #endif /* CONFORMING TO SVID 3, BSD 4.3 */ char *strdup(const char *s) { size_t l; char *d; if (!(d=malloc(l=strlen(s)+1))) return(NULL); return memcpy(d,s,l); }