| 1 |
'\" |
| 2 |
'\" Copyright (c) 1997-1998 Sun Microsystems, Inc. |
| 3 |
'\" |
| 4 |
'\" See the file "license.terms" for information on usage and redistribution |
| 5 |
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. |
| 6 |
'\" |
| 7 |
.TH Tcl_PutEnv 3 "7.5" Tcl "Tcl Library Procedures" |
| 8 |
.so man.macros |
| 9 |
.BS |
| 10 |
.SH NAME |
| 11 |
Tcl_PutEnv \- procedures to manipulate the environment |
| 12 |
.SH SYNOPSIS |
| 13 |
.nf |
| 14 |
\fB#include <tcl.h>\fR |
| 15 |
.sp |
| 16 |
int |
| 17 |
\fBTcl_PutEnv\fR(\fIassignment\fR) |
| 18 |
.SH ARGUMENTS |
| 19 |
.AS "const char" *assignment |
| 20 |
.AP "const char" *assignment in |
| 21 |
Info about environment variable in the format |
| 22 |
.QW \fINAME\fB=\fIvalue\fR . |
| 23 |
The \fIassignment\fR argument is in the system encoding. |
| 24 |
.BE |
| 25 |
.SH DESCRIPTION |
| 26 |
.PP |
| 27 |
\fBTcl_PutEnv\fR sets an environment variable. The information is |
| 28 |
passed in a single string of the form |
| 29 |
.QW \fINAME\fB=\fIvalue\fR . |
| 30 |
This procedure is |
| 31 |
intended to be a stand-in for the UNIX \fBputenv\fR system call. All |
| 32 |
Tcl-based applications using \fBputenv\fR should redefine it to |
| 33 |
\fBTcl_PutEnv\fR so that they will interface properly to the Tcl |
| 34 |
runtime. |
| 35 |
.SH "SEE ALSO" |
| 36 |
env(n) |
| 37 |
.SH KEYWORDS |
| 38 |
environment, variable |