Staging
v0.5.1
v0.5.1
Revision 27683c954b504a7859a5e2b4c9d7f8578a4b390b authored by Antoine Pitrou on 31 October 2010, 13:52:53 UTC, committed by Antoine Pitrou on 31 October 2010, 13:52:53 UTC
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85893 | georg.brandl | 2010-10-28 16:55:02 +0200 (jeu., 28 oct. 2010) | 1 line #10116: wrap transient_internet() around net access in test_urllib2net. ........
1 parent a4f1afa
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 ...