Skip to content
Tcl Source Code Artifact [6d0d1821f8]
Login

Artifact [6d0d1821f8]

Artifact 6d0d1821f88f3f01bb8a5f70e8c58ae325ba6c7231fe31f56c2454eb033901f3:


---
CommandName: Tcl_InitSubsystems
ManualSection: 3
Version: 9.0
TclPart: Tcl
TclDescription: Tcl Library Procedures
Keywords:
 - binary
 - executable file
Copyright:
 - Copyright (c) 2018 Tcl Core Team
---

# Name

Tcl_InitSubsystems - initialize the Tcl library.

# Synopsis

::: {.synopsis} :::
**#include <tcl.h>**
[const char *]{.ret} [Tcl_InitSubsystems]{.ccmd}[]{.cargs}
:::

# Description

The **Tcl_InitSubsystems** procedure initializes the Tcl library. This procedure is typically invoked as the very first thing in the application's main program.

The result of **Tcl_InitSubsystems** is the full Tcl version with build information (e.g., **9.0.0+abcdef...abcdef.gcc-1002**).

**Tcl_InitSubsystems** is very similar in use to **Tcl_FindExecutable**. It can be used when Tcl is used as utility library, no other encodings than utf-8, iso8859-1 or utf-16 are used, and no interest exists in the value of [info nameofexecutable][info]. The system encoding will not be extracted from the environment, but falls back to utf-8.


[info]: info.md