Go to main content

man pages section 3: Extended Library Functions, Volume 1

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

Tcl_PutEnv (3tcl)

Name

Tcl_PutEnv - procedures to manipulate the environment

Synopsis

#include <tcl.h>

int
Tcl_PutEnv(assignment)

Description

Tcl_PutEnv(3tcl)            Tcl Library Procedures            Tcl_PutEnv(3tcl)



______________________________________________________________________________

NAME
       Tcl_PutEnv - procedures to manipulate the environment

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 sys-
                                            tem 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  applica-
       tions  using  putenv should redefine it to Tcl_PutEnv so that they will
       interface properly to the Tcl runtime.


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+------------------+
       |ATTRIBUTE TYPE | ATTRIBUTE VALUE  |
       +---------------+------------------+
       |Availability   | runtime/tcl-8    |
       +---------------+------------------+
       |Stability      | Uncommitted      |
       +---------------+------------------+

SEE ALSO
       env(n)

KEYWORDS
       environment, variable



NOTES
       Source code for open source software components in Oracle  Solaris  can
       be found at https://www.oracle.com/downloads/opensource/solaris-source-
       code-downloads.html.

       This    software    was    built    from    source     available     at
       https://github.com/oracle/solaris-userland.    The  original  community
       source was downloaded from  http://prdownloads.sourceforge.net/tcl/tcl-
       core8.6.7-src.tar.gz.

       Further information about this software can be found on the open source
       community website at https://www.tcl.tk/.



Tcl                                   7.5                     Tcl_PutEnv(3tcl)