Artifact 11bbd14e89fa600abf6822086752846fe163f89eb1a12200f5f493a598ddf996:
- File doc/markdown/Environment.md — part of check-in [cf14f4189c] at 2026-08-06 19:05:02 on branch tip-700 — initial implementation of nroff .AS and .AP markup in Tcl C API manual pages (user: Torsten, size: 973) [annotate] [blame] [check-ins using]
CommandName: Tcl_PutEnv ManualSection: 3 Version: 7.5 TclPart: Tcl TclDescription: Tcl Library Procedures Links:
- env(n) Keywords:
- environment
- variable Copyright:
- Copyright (c) 1997-1998 Sun Microsystems, Inc. ---
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.