Tcl_PutEnv(3tcl)

Tcl_PutEnv3tcl

Procedures to manipulate the environment

Usage

#include <tcl.h>

int
Tcl_PutEnv(assignment)

    


    

Arguments

const char *assignment (in)

Info about environment variable in the format “NAME=value”. The assignment argument is in the system encoding.


    


            

Overview

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.

Keywords

environment, variable

Releases

11 releases since Debian 3.1 (Sarge); the text changed 6 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7
  6. 8–10
  7. 11–13

From tcl8.6-doc 8.6.16+dfsg-1 in Debian 13 (Trixie). Also shipped by tcl9.0-doc. Parsed by carta from the page's man source.