Staging
v0.5.1
v0.5.1
Revision e53c98563824cbb2f296f1de1f2185a7b5271cd6 authored by Larry Hastings on 19 August 2020, 19:56:53 UTC, committed by Larry Hastings on 19 August 2020, 19:56:53 UTC
1 parent 45efe03
strdup.c
/* strdup() replacement (from stdwin, if you must know) */
#include "pgenheaders.h"
char *
strdup(const char *str)
{
if (str != NULL) {
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 ...