---
name: "Tcl_InitSubsystems"
section: "3tcl"
platform: "linux"
package: "tcl9.0-doc"
version: "9.0.1+dfsg-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Tcl_InitSubsystems"
---

# Tcl\_InitSubsystems(3tcl)

initialize the Tcl library.

```

```

## NAME

Tcl\_InitSubsystems - initialize the Tcl library.

## SYNOPSIS

```
#include <tcl.h>

const char *
Tcl_InitSubsystems()
```

```

```

## 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**. The system encoding will not be extracted from the environment, but falls back to utf-8.

## KEYWORDS

binary, executable file
