summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorwasiher <watashiwaher@gmail.com>2020-07-27 03:28:45 (GMT)
committerGitHub <noreply@github.com>2020-07-27 03:28:45 (GMT)
commit5798f787779006a94a55ec74a86da4627de90146 (patch)
tree9505036fd4ddf510adfffb62c6ad6bb2c665bd8c /Python
parentf1d40f941a6483b1d4ea10f1051ace7b426fb8e7 (diff)
downloadcpython-5798f787779006a94a55ec74a86da4627de90146.zip
cpython-5798f787779006a94a55ec74a86da4627de90146.tar.gz
cpython-5798f787779006a94a55ec74a86da4627de90146.tar.bz2
bpo-41340: Removed fallback implementation for strdup (GH-21634)
Diffstat (limited to 'Python')
-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;
-}