---
name: "Tcl_SourceRCFile"
section: "3"
platform: "linux"
package: "tcl"
version: "8.6.16-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/Tcl_SourceRCFile"
---

# Tcl\_SourceRCFile(3)

source the Tcl rc file

```

```

## NAME

Tcl\_SourceRCFile - source the Tcl rc file

## SYNOPSIS

```
#include <tcl.h>

void
Tcl_SourceRCFile(interp)
```

## ARGUMENTS

- Tcl\_Interp *\*interp* (in)

  Tcl interpreter to source rc file into.

  ```

  ```

## DESCRIPTION

**Tcl\_SourceRCFile** is used to source the Tcl rc file at startup. It is typically invoked by Tcl\_Main or Tk\_Main.  The name of the file sourced is obtained from the global variable **tcl\_rcFileName** in the interpreter given by *interp*.  If this variable is not defined, or if the file it indicates cannot be found, no action is taken.

## KEYWORDS

application-specific initialization, main program, rc file
