view Python/getplatform.c @ 21127:dd28a4ecb37f legacy-trunk

mywrite(): The test for trouble in PyOS_vsnprintf was wrong on both ends. Also, when there is trouble, ensure the buffer has a traiing 0 byte.
author Tim Peters <tim.peters@gmail.com>
date Sun, 02 Dec 2001 08:29:16 +0000
parents 6f6f965c5e2d
children
line wrap: on
line source


#include "Python.h"

#ifndef PLATFORM
#define PLATFORM "unknown"
#endif

const char *
Py_GetPlatform(void)
{
	return PLATFORM;
}