From 5798f787779006a94a55ec74a86da4627de90146 Mon Sep 17 00:00:00 2001 From: wasiher Date: Mon, 27 Jul 2020 12:28:45 +0900 Subject: bpo-41340: Removed fallback implementation for strdup (GH-21634) --- Python/strdup.c | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 Python/strdup.c (limited to 'Python/strdup.c') diff --git a/Python/strdup.c b/Python/strdup.c deleted file mode 100644 index 6ce171b21f..0000000000 --- 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; -} -- cgit v1.2.1