Staging
v0.5.1
v0.5.1
Revision 98fa1ca6cacde3af0bce3dfcf753a0048d742854 authored by Raymond Hettinger on 24 August 2005, 07:07:44 UTC, committed by Raymond Hettinger on 24 August 2005, 07:07:44 UTC
Docs were missing the name/bases/dict form of type(). (Much of the wording contributed by Steven Bethard.)
1 parent f9189d0
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 ...