NAME
TclGetVersion - get the version of the library at runtime
SYNOPSIS
##iinncclluuddee <
TTccllGGeettVVeerrssiioonn(major, minor, patchLevel, type) AARRGGUUMMEENNTTSS 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). TclReleaseType *type(out) The type of release, also indicates the type of patch level. Can be one of TTCCLLAALLPPHHAARREELLEEAASSEE, TTCCLLBBEETTAARREELLEEAASSEE, or TTCCLLFFIINNAALLRREELLEEAASSEE.> DESCRIPTION
TTccllGGeettVVeerrssiioonn should be used to query the version number of the Tcl library at runtime. This is useful when using a dynamically loaded Tcllibrary 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 you expected. Use TTccllGGeettVVeerrssiioonn to verify that fact, and possibly to change the behavior of your extension. TTccllGGeettVVeerrssiioonn 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. KKEEYYWWOORRDDSS version, patchlevel, major, minor, alpha, beta, releaseTcl 7.5 TclGetVersion(3)