tcldoc Tcl/Tk 9.0.4
/

HomeTcl Library Procedures Tcl

Tcl_PutEnv C API

Procedures to manipulate the environment

literal type exactly as shown argument replace with your value ?optional? may be omitted

Synopsis#

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

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.

Keywords#

environment · variable

Copyright#