Staging
v0.5.1
https://github.com/python/cpython
Revision 491afb533e40ac2066e427bdce6a77ce8f20d73b authored by larryhastings on 22 June 2017, 23:01:00 UTC, committed by GitHub on 22 June 2017, 23:01:00 UTC
CPython workflow is changing!  We're going to start using "blurb"
to manage Misc/NEWS entries:
    https://github.com/python/core-workflow
(This will be a big win for release managers, honest.)

This checkin simply populates the "Misc/NEWS.d" subdirectory tree
so that people can start putting their news entries in there.
No other changes (yet).
1 parent 91d171b
Raw File
Tip revision: 491afb533e40ac2066e427bdce6a77ce8f20d73b authored by larryhastings on 22 June 2017, 23:01:00 UTC
Add "Misc/NEWS.d" directory tree for "blurb". GH-2330
Tip revision: 491afb5
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;
}
back to top