Skip to content
Tcl Source Code Artifact [fdfb714c97]
Login

Artifact [fdfb714c97]

Artifact fdfb714c97625780670f2941f286353216da8750b790ff2c75f66ef13deb5f11:



CommandName: Tcl_PutEnv ManualSection: 3 Version: 7.5 TclPart: Tcl TclDescription: Tcl Library Procedures Links:

Name

Tcl_PutEnv - procedures to manipulate the environment

Synopsis

::: {.synopsis} ::: #include <tcl.h> [int]{.ret} [Tcl_PutEnv]{.ccmd}[assignment]{.cargs} :::

Arguments

::: {.arguments} :::

[*assignment]{.carg .in type="const char"} : Info about environment variable in the format .QW NAME**=**value . The assignment argument is in the system encoding.

:::

Description

Tcl_PutEnv sets an environment variable. The information is passed in a single string of the form "NAME**=value". This procedure is intended to be a stand-in for the UNIX **putenv system call. All Tcl-based applications using putenv should redefine it to Tcl_PutEnv so that they will interface properly to the Tcl runtime.