Staging
v0.8.1
v0.8.1
Revision a14034872bfe9b5fca07125e7369b8c7030c164b authored by Georg Brandl on 12 October 2013, 20:55:34 UTC, committed by Georg Brandl on 12 October 2013, 20:55:34 UTC
1 parent f54ab1f
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 ...