| Line |  | 
|---|
| 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 | '\" RCS: @(#) $Id: Environment.3,v 1.6 2005/05/10 18:33:55 kennykb Exp $ | 
|---|
| 8 | '\" | 
|---|
| 9 | .so man.macros | 
|---|
| 10 | .TH Tcl_PutEnv 3 "7.5" Tcl "Tcl Library Procedures" | 
|---|
| 11 | .BS | 
|---|
| 12 | .SH NAME | 
|---|
| 13 | Tcl_PutEnv \- procedures to manipulate the environment | 
|---|
| 14 | .SH SYNOPSIS | 
|---|
| 15 | .nf | 
|---|
| 16 | \fB#include <tcl.h>\fR | 
|---|
| 17 | .sp | 
|---|
| 18 | int | 
|---|
| 19 | \fBTcl_PutEnv\fR(\fIassignment\fR) | 
|---|
| 20 | .SH ARGUMENTS | 
|---|
| 21 | .AS "const char" *assignment | 
|---|
| 22 | .AP "const char" *assignnment in | 
|---|
| 23 | Info about environment variable in the format NAME=value. | 
|---|
| 24 | The \fIassignment\fR argument is in the system encoding. | 
|---|
| 25 | .BE | 
|---|
| 26 |  | 
|---|
| 27 | .SH DESCRIPTION | 
|---|
| 28 | .PP | 
|---|
| 29 | \fBTcl_PutEnv\fR sets an environment variable. The information is | 
|---|
| 30 | passed in a single string of the form NAME=value.  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 |  | 
|---|
| 36 | .SH KEYWORDS | 
|---|
| 37 | environment, variable | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.