Tcl Library Procedures Tcl_GetVersion(3TCL)
_________________________________________________________________
NAME
Tcl_GetVersion - get the version of the library at runtime
SYNOPSIS
#include
Tcl_GetVersion(major, minor, patchLevel, type)
ARGUMENTS int *major (out) Major version number of the Tcl library. int *minor (out) Minor version number of the Tcl library. int *patchLevel (out) The patch level of the Tcl library (or alpha or beta number).Tcl_ReleaseType *type(out)
The type of release, also indicates the type of patch level. Can be one ofTCL_ALPHA_RELEASE,
TCL_BETA_RELEASE,
orTCL_FINAL_RELEASE.
_________________________________________________________________
DESCRIPTION
Tcl_GetVersion should be used to query the version number of
the Tcl library at runtime. This is useful when using adynamically loaded Tcl library or when writing a stubs-aware
extension. For instance, if you write an extension that is linked against the Tcl stubs library, it could be loaded into a program linked to an older version of Tcl than youexpected. Use Tcl_GetVersion to verify that fact, and pos-
sibly to change the behavior of your extension.Tcl_GetVersion accepts NULL for any of the arguments. For
instance if you do not care about the patchLevel of the library, pass a NULL for the patchLevel argument. Tcl Last change: 7.5 1Tcl Library Procedures Tcl_GetVersion(3TCL)
KEYWORDS version, patchlevel, major, minor, alpha, beta, releaseATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:_______________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE|
|____________________|__________________|_
| Availability | runtime/tcl-8 |
|____________________|__________________|_
| Interface Stability| Uncommitted ||____________________|_________________|
NOTES Source for Tcl is available on http://opensolaris.org. Tcl Last change: 7.5 2