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