## Tcl9.0.3/Tk9.0.3 Documentation > Tcl C API > GetVersion

### Tcl/Tk Applications | Tcl Commands | Tk Commands | [incr Tcl] Package Commands | SQLite3 Package Commands | TDBC Package Commands | tdbc::mysql Package Commands | tdbc::odbc Package Commands | tdbc::postgres Package Commands | tdbc::sqlite3 Package Commands | Thread Package Commands | Tcl C API | Tk C API | [incr Tcl] Package C API | TDBC Package C API

  NAME
    Tcl_GetVersion — 実行時の外部関数の版番号を得る get the version of the library at runtime
  SYNOPSIS
    #include <tcl.h>
    Tcl_GetVersion(major, minor, patchLevel, type)
  引数 ARGUMENTS
    int *major (出力out)
    int *minor (出力out)
    int *patchLevel (出力out)
    int *type (出力out)
  説明 DESCRIPTION
  KEYWORDS

### NAME

Tcl_GetVersion — 実行時の外部関数の版番号を得る get the version of the library at runtime

### SYNOPSIS

#include <tcl.h>
Tcl_GetVersion(major, minor, patchLevel, type)

### 引数 ARGUMENTS

int *major (出力out)
  Tcl 外部函数の主要版番号｡　 Major version number of the Tcl library.

int *minor (出力out)
  Tcl 外部函数の副版番号｡　 Minor version number of the Tcl library.

int *patchLevel (出力out)
  Tcl 外部函数の手直し版番号(又はアルファ 又は ベータ 番号)｡　 The patch level of the Tcl library (or alpha or beta number).

int *type (出力out)
  公開の型､又手直し水準の型を示す｡ TCL_ALPHA_RELEASE か TCL_BETA_RELEASE か TCL_FINAL_RELEASE の内の一つが可能｡　 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 は実行中に Tcl 外部函数の版番号問合せに使われる｡これは､動的に Tcl 外部函数を組込んだ時や､stubs-志向の拡張を書いた時に便利である｡譬えば､もし Tcl stubs 外部函数に対して連結する拡張を書いた場合､予想したより古い版の Tcl に連結した算譜に組込まれ得る｡ Tcl_GetVersion を確認の為に使い拡張の挙動を帰られるかもしれない｡ 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 はどの引数にも NULL を受入れられる｡譬えば､もし､外部函数の patchLevel について註意を払わない場合､ patchLevel 引数に NULL を渡されたい｡ 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.

### KEYWORDS

version, patchlevel, major, minor, alpha, beta, release
Copyright © 1999 Scriptics Corporation