This commit was manufactured by cvs2svn to create branch 'unlabeled-1.6.2'.
[mdsms.git] / strdup.c
diff --git a/strdup.c b/strdup.c
deleted file mode 100644 (file)
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 <string.h>
-#include <stdlib.h>
-
-/* 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);
-}