This commit was manufactured by cvs2svn to create branch 'vellum_cz'.
[nethome.git] / src / misc / strdup.c
diff --git a/src/misc/strdup.c b/src/misc/strdup.c
deleted file mode 100644 (file)
index 1dfd7e7..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-#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 <stdlib.h>
-#endif
-#ifdef HAVE_STRING_H
-#include <string.h>
-#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);
-}