Staging
v0.8.1
v0.8.1
Revision 4452cdcb79fdade13c00eabe63304efa4da1c3ad authored by Larry Hastings on 09 September 2019, 13:39:36 UTC, committed by Larry Hastings on 09 September 2019, 13:39:36 UTC
1 parent a7b0992
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 ...