📄 getversion.3
字号:
'\"'\" Copyright (c) 1999 Scriptics Corporation'\"'\" See the file "license.terms" for information on usage and redistribution'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.'\" '\" RCS: @(#) $Id: GetVersion.3,v 1.3 2001/12/14 06:04:42 dgp Exp $'\" .so man.macros.TH Tcl_GetVersion 3 7.5 Tcl "Tcl Library Procedures".BS.SH NAMETcl_GetVersion \- get the version of the library at runtime.SH SYNOPSIS.nf\fB#include <tcl.h>\fR.sp\fBTcl_GetVersion\fR(\fImajor, minor, patchLevel, type\fR).SH ARGUMENTS.AP int *major outMajor version number of the Tcl library..AP int *minor outMinor version number of the Tcl library..AP int *patchLevel outThe patch level of the Tcl library (or alpha or beta number)..AP Tcl_ReleaseType *type outThe type of release, also indicates the type of patch level. Can beone of \fBTCL_ALPHA_RELEASE\fR, \fBTCL_BETA_RELEASE\fR, or \fBTCL_FINAL_RELEASE\fR..BE.SH DESCRIPTION.PP\fBTcl_GetVersion\fR should be used to query the version numberof the Tcl library at runtime. This is useful when using a dynamically loaded Tcl library or when writing a stubs-awareextension. For instance, if you write an extension that islinked against the Tcl stubs library, it could be loaded intoa program linked to an older version of Tcl than you expected.Use \fBTcl_GetVersion\fR to verify that fact, and possibly tochange the behavior of your extension..PP\fBTcl_GetVersion\fR accepts NULL for any of the arguments. For instance if you do not care about the \fIpatchLevel\fR of the library, passa NULL for the \fIpatchLevel\fR argument..SH KEYWORDSversion, patchlevel, major, minor, alpha, beta, release
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -