Artifact efd40e60a2f2ead11a0c586fed9437cde64ae4f5ee8b4a4e3ece065daf3a4187:
- File doc/markdown/Environment.md — part of check-in [321b67167b] at 2026-09-22 22:01:30 on branch tip-700 — - corrected over-agressive removal of empty lines, corrupting some divs - added some missing nroff escape sequences - CrtChannel.3: removed am additional and unnecessary .PP leaving an orphaned TIP220 behind - more ugly code to get the TIP markers across (or not) (user: Torsten, size: 975) [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 "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.