Revision 33aeb1736dad53881807bde017798b8be312cf14 authored by Andrés Delfino on 07 November 2018, 18:12:12 UTC, committed by Miss Islington (bot) on 07 November 2018, 18:12:27 UTC
(cherry picked from commit bfe1839aa994f0d84471254418a4ecfa7c7c9b9c) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
1 parent 0d9896d
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 ...