Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/tcl8.5.2/doc/GetVersion.3 @ 37

Last change on this file since 37 was 25, checked in by landauf, 16 years ago

added tcl to libs

File size: 1.7 KB
Line 
1'\"
2'\" Copyright (c) 1999 Scriptics Corporation
3'\"
4'\" See the file "license.terms" for information on usage and redistribution
5'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
6'\"
7'\" RCS: @(#) $Id: GetVersion.3,v 1.4 2004/10/07 14:44:32 dkf Exp $
8'\"
9.so man.macros
10.TH Tcl_GetVersion 3 7.5 Tcl "Tcl Library Procedures"
11.BS
12.SH NAME
13Tcl_GetVersion \- get the version of the library at runtime
14.SH SYNOPSIS
15.nf
16\fB#include <tcl.h>\fR
17.sp
18\fBTcl_GetVersion\fR(\fImajor, minor, patchLevel, type\fR)
19.SH ARGUMENTS
20.AS Tcl_ReleaseType *patchLevel out
21.AP int *major out
22Major version number of the Tcl library.
23.AP int *minor out
24Minor version number of the Tcl library.
25.AP int *patchLevel out
26The patch level of the Tcl library (or alpha or beta number).
27.AP Tcl_ReleaseType *type out
28The type of release, also indicates the type of patch level. Can be
29one of \fBTCL_ALPHA_RELEASE\fR, \fBTCL_BETA_RELEASE\fR, or
30\fBTCL_FINAL_RELEASE\fR.
31.BE
32
33.SH DESCRIPTION
34.PP
35\fBTcl_GetVersion\fR should be used to query the version number
36of the Tcl library at runtime.  This is useful when using a
37dynamically loaded Tcl library or when writing a stubs-aware
38extension.  For instance, if you write an extension that is
39linked against the Tcl stubs library, it could be loaded into
40a program linked to an older version of Tcl than you expected.
41Use \fBTcl_GetVersion\fR to verify that fact, and possibly to
42change the behavior of your extension.
43.PP
44\fBTcl_GetVersion\fR accepts NULL for any of the arguments. For instance if
45you do not care about the \fIpatchLevel\fR of the library, pass
46a NULL for the \fIpatchLevel\fR argument.
47
48.SH KEYWORDS
49version, patchlevel, major, minor, alpha, beta, release
50
Note: See TracBrowser for help on using the repository browser.