Tcl\_InitSubsystems(3) Tcl Library Procedures Tcl\_InitSubsystems(3)

```

```

# [NAME](#NAME)

Tcl\_InitSubsystems - initialize the Tcl library.

# [SYNOPSIS](#SYNOPSIS)

```
#include <tcl.h>

const char *
Tcl_InitSubsystems()
```

```

```

# [DESCRIPTION](#DESCRIPTION)

The **Tcl\_InitSubsystems** procedure initializes various Tcl subsystems. It should be called by any additional Tcl threads created after the main thread in a Tcl application that wish to use Tcl facilities without creating an interpreter. Threads that create interpreters using **Tcl\_CreateInterp** do not need to call this function, provided that **Tcl\_CreateInterp** is the first call into Tcl from that thread.

Note that the main thread must have first called either **TclZipfs\_AppHook** or **Tcl\_FindExecutable** to perform application-wide Tcl initialization before additional threads using Tcl are created. **Tcl\_InitSubsystems** does not suffice for this purpose and should only be used to initialize Tcl in secondary threads. It need not be called in the main thread invoking one of the two aforementioned functions.

The result of **Tcl\_InitSubsystems** is the full Tcl version string, including build information (for example, **9.0.0+abcdef...abcdef.gcc-1002**).

# [KEYWORDS](#KEYWORDS)

binary, executable file

9.0 Tcl

---

Document: Tcl_InitSubsystems(3) from tcl 9.1.0-r2 (Chainguard OS)
Source: https://downloads.sourceforge.net/project/tcl/Tcl/9.1.0/tcl9.1.0-src.tar.gz
