Staging
v0.5.1
v0.5.1
Revision 3b5deb0116abf2c94690d48af41b109bc8a4d559 authored by Łukasz Langa on 04 June 2019, 17:44:34 UTC, committed by Łukasz Langa on 04 June 2019, 17:44:34 UTC
1 parent 8d0ef0b
strdup.c
/* strdup() replacement (from stdwin, if you must know) */
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 ...