From 667d704997f26a1a22f4e981bbb3c2f8399cfc41 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 4 Aug 1995 04:20:48 +0000 Subject: Initial revision --- Python/getversion.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Python/getversion.c (limited to 'Python/getversion.c') diff --git a/Python/getversion.c b/Python/getversion.c new file mode 100644 index 0000000000..1f2acccebd --- /dev/null +++ b/Python/getversion.c @@ -0,0 +1,21 @@ +/* Return the full version string. */ + +#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; +} -- cgit v1.2.1