Staging
v0.8.1
v0.8.1
Revision 96d237c40a97f2db2f347f657669ff08c96a005e authored by Georg Brandl on 13 August 2011, 09:59:12 UTC, committed by Georg Brandl on 13 August 2011, 09:59:12 UTC
1 parent d88e5af
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 ...