Staging
v0.8.1
v0.8.1
Revision b9172b9630eeefc6dea1409b5bf4180b27fc359f authored by Miss Islington (bot) on 28 March 2018, 08:49:24 UTC, committed by Ned Deily on 28 March 2018, 08:49:24 UTC
(cherry picked from commit c0518cde7a8404f310cd3495e77e612820ecad4f) Co-authored-by: Ned Deily <nad@python.org>
1 parent 39c0ef5
strdup.c
/* strdup() replacement (from stdwin, if you must know) */
#include "pgenheaders.h"
char *
strdup(const char *str)
{
if (str != NULL) {
char *copy = malloc(strlen(str) + 1);
if (copy != NULL)
return strcpy(copy, str);
}
return NULL;
}
Computing file changes ...