Staging
v0.8.1
v0.8.1
Revision 36a6558891a010675cd2867a242055db113b7012 authored by Benjamin Peterson on 23 February 2012, 15:45:48 UTC, committed by Benjamin Peterson on 23 February 2012, 15:45:48 UTC
1 parent c9a4207
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 ...