---
name: "SourceRCFile"
section: "3"
platform: "macos"
package: "tcl"
version: "152"
release: "macOS 26.5"
platforms: ["macos"]
url: "https://new.carta.tech/SourceRCFile"
---

# 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 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
