X-Git-Url: http://git.jankratochvil.net/?p=mdsms.git;a=blobdiff_plain;f=strdup.c;fp=strdup.c;h=0000000000000000000000000000000000000000;hp=f67630f0138e5ffebc59628b8193190c95062d6f;hb=bc4905b896e1f2339506b4b1bee9f0abc7bd19bf;hpb=8409e729e576b28d6c74c9fae7971aa64bd4a906 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); -}