---
name: "SourceRCFile"
section: "3tcl"
platform: "linux"
package: "tcl8.3-doc"
version: "8.3.5-13"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/SourceRCFile/3tcl"
---

# SourceRCFile(3tcl)

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.

On the Macintosh, after sourcing the rc file, this function will additionally source the TEXT resource indicated by the global variable **tcl\_rcRsrcName** in *interp*.

## KEYWORDS

application-specific initialization, main program, rc file
