Staging
v0.8.1
v0.8.1
Revision cf60858b55a1ce8d99daa301f7aad9a7ffeb0bb7 authored by Martin v. Löwis on 28 May 2011, 11:56:22 UTC, committed by Martin v. Löwis on 28 May 2011, 11:56:22 UTC
1 parent 2d253dd
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 ...