home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 15 / AACD15.ISO / AACD / Programming / Python2 / Python20_source / Python / getversion.c < prev    next >
Encoding:
C/C++ Source or Header  |  2000-10-25  |  260 b   |  16 lines

  1.  
  2. /* Return the full version string. */
  3.  
  4. #include "Python.h"
  5.  
  6. #include "patchlevel.h"
  7.  
  8. const char *
  9. Py_GetVersion(void)
  10. {
  11.     static char version[250];
  12.     sprintf(version, "%.80s (%.80s) %.80s", PY_VERSION,
  13.         Py_GetBuildInfo(), Py_GetCompiler());
  14.     return version;
  15. }
  16.