Staging
v0.8.1
v0.8.1
Revision 0192ba33b4ff53aa747077b995b6f7fa612e788e authored by Eli Bendersky on 30 March 2012, 13:38:33 UTC, committed by Eli Bendersky on 30 March 2012, 13:38:33 UTC
1 parent 1e25755
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 ...