Staging
v0.5.1
v0.5.1
Revision 442c560bd8cd5f51f823ccb3d0ae161be3de0367 authored by Larry Hastings on 07 September 2015, 12:12:05 UTC, committed by Larry Hastings on 07 September 2015, 12:12:05 UTC
1 parent 7d83949
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 ...