X-Git-Url: http://git.jankratochvil.net/?p=mdsms.git;a=blobdiff_plain;f=strdup.c;fp=strdup.c;h=0000000000000000000000000000000000000000;hp=f67630f0138e5ffebc59628b8193190c95062d6f;hb=0ec0bccdc85571181ae58feed34497f58ef9583b;hpb=ff9aca63e50c661c59deec9d285ae8173ddec802 diff --git a/strdup.c b/strdup.c deleted file mode 100644 index f67630f..0000000 --- a/strdup.c +++ /dev/null @@ -1,20 +0,0 @@ -#include "config.h" -#ifndef lint -static char rcsid[] ATTR_UNUSED = "$Id$"; -#endif - -/* This part of code is a public domain */ - -#include -#include - -/* 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); -}