Artifact 356096ab1da1bf5310ef56d3a53e66ec2dd3527f7cf723db849ec0b9f949f4b5:
- File doc/markdown/GetVersion.md — part of check-in [5e80e55e41] at 2026-09-26 22:40:07 on branch tip-700 — - added a "title" metadata element to the generated yaml block to satisfy Pandoc when converting to HTML - added markdown2html.tcl as prototype/placeholder of conversion script markdown -> HTML - added some CSS to play with a good visual representation of the generated HTML, starting with the n section pages - fixed man2markdown.tcl not giving the two .TP/.IP parsing places the same treatment (user: Torsten, size: 1613) [annotate] [blame] [check-ins using]
- File doc/markdown/TclCAPI/GetVersion.md — part of check-in [b84ce0eee1] at 2026-10-04 22:10:02 on branch tip-700 — file location re-organisation (part 1) (user: Torsten, size: 1613) [annotate] [blame] [check-ins using]
CommandName: Tcl_GetVersion title: Tcl_GetVersion ManualSection: 3 Version: 7.5 TclPart: Tcl TclDescription: Tcl Library Procedures Keywords:
- version
- patchlevel
- major
- minor
- alpha
- beta
- release Copyright:
- Copyright (c) 1999 Scriptics Corporation ---
Name
Tcl_GetVersion - get the version of the library at runtime
Synopsis
::: {.synopsis} ::: #include <tcl.h> [Tcl_GetVersion]{.ccmd} [major, minor, patchLevel, type]{.cargs} :::
Arguments
::: {.arguments} :::
[*major]{.carg .out type="int"} : Major version number of the Tcl library.
[*minor]{.carg .out type="int"} : Minor version number of the Tcl library.
[*patchLevel]{.carg .out type="int"} : The patch level of the Tcl library (or alpha or beta number).
[*type]{.carg .out type="int"} : The type of release, also indicates the type of patch level. Can be one of TCL_ALPHA_RELEASE, TCL_BETA_RELEASE, or TCL_FINAL_RELEASE.
:::
Description
Tcl_GetVersion should be used to query the version number of the Tcl library at runtime. This is useful when using a dynamically 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 you expected. Use Tcl_GetVersion to verify that fact, and possibly 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.