0
0
mirror of https://github.com/python/cpython.git synced 2024-11-25 01:20:47 +01:00
cpython/Python/getversion.c

24 lines
365 B
C
Raw Normal View History

1995-08-04 06:20:48 +02:00
/* Return the full version string. */
1995-09-18 23:40:19 +02:00
#include "Python.h"
1995-08-04 06:20:48 +02:00
#include "patchlevel.h"
#define VERSION "%s (%s) %s"
#ifdef __DATE__
#define DATE __DATE__
#else
#define DATE "August 1 1995"
#endif
extern const char *getcompiler();
const char *
getversion()
{
static char version[80];
sprintf(version, VERSION, PATCHLEVEL, DATE, getcompiler());
return version;
}