Staging
v0.5.1
v0.5.1
Revision cf744da03be452ea69316838f08afbd4ba464be1 authored by Georg Brandl on 05 March 2011, 13:57:44 UTC, committed by Georg Brandl on 05 March 2011, 13:57:44 UTC
1 parent b847079
strdup.c
/* strdup() replacement (from stdwin, if you must know) */
#include "pgenheaders.h"
char *
strdup(const char *str)
{
if (str != NULL) {
register char *copy = malloc(strlen(str) + 1);
if (copy != NULL)
return strcpy(copy, str);
}
return NULL;
}
Computing file changes ...