Staging
v0.5.1
v0.5.1
Revision c0f10f34b13a8b70a776015c6be07b913209582f authored by Georg Brandl on 09 September 2008, 20:28:31 UTC, committed by Georg Brandl on 09 September 2008, 20:28:31 UTC
1 parent 9806407
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;
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...