Staging
v0.5.1
v0.5.1
Revision 33e4a98a3ea14e58a4a1c4a7765b9be33b14a5d9 authored by Christian Heimes on 07 May 2008, 22:54:17 UTC, committed by Christian Heimes on 07 May 2008, 22:54:17 UTC
1 parent 342c095
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 ...