summaryrefslogtreecommitdiffstats
path: root/Python/strdup.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/strdup.c')
-rw-r--r--Python/strdup.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/Python/strdup.c b/Python/strdup.c
deleted file mode 100644
index 6ce171b..0000000
--- a/Python/strdup.c
+++ /dev/null
@@ -1,12 +0,0 @@
-/* strdup() replacement (from stdwin, if you must know) */
-
-char *
-strdup(const char *str)
-{
- if (str != NULL) {
- char *copy = malloc(strlen(str) + 1);
- if (copy != NULL)
- return strcpy(copy, str);
- }
- return NULL;
-}