Go to main content

man pages section 3: Extended Library Functions, Volume 1

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

Tcl_SourceRCFile (3tcl)

Name

Tcl_SourceRCFile - source the Tcl rc file

Synopsis

#include <tcl.h>

void
Tcl_SourceRCFile(interp)

Description

Tcl_SourceRCFile(3tcl)      Tcl Library Procedures      Tcl_SourceRCFile(3tcl)



______________________________________________________________________________

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



ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+------------------+
       |ATTRIBUTE TYPE | ATTRIBUTE VALUE  |
       +---------------+------------------+
       |Availability   | runtime/tcl-8    |
       +---------------+------------------+
       |Stability      | Uncommitted      |
       +---------------+------------------+

NOTES
       Source code for open source software components in Oracle  Solaris  can
       be found at https://www.oracle.com/downloads/opensource/solaris-source-
       code-downloads.html.

       This    software    was    built    from    source     available     at
       https://github.com/oracle/solaris-userland.    The  original  community
       source was downloaded from  http://prdownloads.sourceforge.net/tcl/tcl-
       core8.6.7-src.tar.gz.

       Further information about this software can be found on the open source
       community website at https://www.tcl.tk/.



Tcl                                   8.3               Tcl_SourceRCFile(3tcl)