Staging
v0.8.1
v0.8.1
Revision 0063367c7c79836608062fe7d958ae262afa820f authored by Benjamin Peterson on 03 July 2010, 13:56:56 UTC, committed by Benjamin Peterson on 03 July 2010, 13:56:56 UTC
1 parent c60082d
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 ...