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)
27                                                 The  type  of  release,  also
28                                                 indicates the type  of  patch
29                                                 level.    Can   be   one   of
30                                                 TCL_ALPHA_RELEASE,
31                                                 TCL_BETA_RELEASE,          or
32                                                 TCL_FINAL_RELEASE.
33_________________________________________________________________
34
35

DESCRIPTION

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

KEYWORDS

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