summaryrefslogtreecommitdiff
path: root/sys/src/cmd/python/Python/strdup.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/src/cmd/python/Python/strdup.c')
-rw-r--r--sys/src/cmd/python/Python/strdup.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/sys/src/cmd/python/Python/strdup.c b/sys/src/cmd/python/Python/strdup.c
deleted file mode 100644
index 20187e0f0..000000000
--- a/sys/src/cmd/python/Python/strdup.c
+++ /dev/null
@@ -1,14 +0,0 @@
-/* strdup() replacement (from stdwin, if you must know) */
-
-#include "pgenheaders.h"
-
-char *
-strdup(const char *str)
-{
- if (str != NULL) {
- register char *copy = malloc(strlen(str) + 1);
- if (copy != NULL)
- return strcpy(copy, str);
- }
- return NULL;
-}