1Tcl_GetVersion(3)           Tcl Library Procedures           Tcl_GetVersion(3)
2
3
4
5______________________________________________________________________________
6

NAME

8       Tcl_GetVersion - get the version of the library at runtime
9

SYNOPSIS

11       #include <tcl.h>
12
13       Tcl_GetVersion(major, minor, patchLevel, type)
14

ARGUMENTS

16       int *major (out)                          Major  version  number of the
17                                                 Tcl library.
18
19       int *minor (out)                          Minor version number  of  the
20                                                 Tcl library.
21
22       int *patchLevel (out)                     The  patch  level  of the Tcl
23                                                 library  (or  alpha  or  beta
24                                                 number).
25
26       Tcl_ReleaseType *type (out)               The  type  of  release,  also
27                                                 indicates the type  of  patch
28                                                 level.    Can   be   one   of
29                                                 TCL_ALPHA_RELEASE,
30                                                 TCL_BETA_RELEASE,          or
31                                                 TCL_FINAL_RELEASE.
32______________________________________________________________________________
33
34

DESCRIPTION

36       Tcl_GetVersion should be used to query the version number  of  the  Tcl
37       library at runtime.  This is useful when using a dynamically loaded Tcl
38       library or when writing a stubs-aware extension.  For instance, if  you
39       write  an  extension  that  is linked against the Tcl stubs library, it
40       could be loaded into a program linked to an older version of  Tcl  than
41       you  expected.  Use Tcl_GetVersion to verify that fact, and possibly to
42       change the behavior of your extension.
43
44       Tcl_GetVersion accepts NULL for any of the arguments. For  instance  if
45       you  do  not  care about the patchLevel of the library, pass a NULL for
46       the patchLevel argument.
47
48

KEYWORDS

50       version, patchlevel, major, minor, alpha, beta, release
51
52
53
54
55Tcl                                   7.5                    Tcl_GetVersion(3)
Impressum