setenvtcl.c File Reference

#include "TCL_Global.h"
#include "setenvtcl.h"

Include dependency graph for setenvtcl.c:

Go to the source code of this file.

Functions

int setenvtcl (char *string, char *value)


Function Documentation

int setenvtcl ( char *  string,
char *  value 
)

TODO : comment

Parameters:
string 
value 
Returns:

Definition at line 8 of file setenvtcl.c.

00009 {
00010         int bOK=FALSE;
00011         char MyTclCommand[2048];
00012 
00013         sprintf(MyTclCommand,"env(%s)",string);
00014 
00015         if (TCLinterp==NULL) return((int)FALSE);
00016         
00017         if ( !Tcl_SetVar(TCLinterp,MyTclCommand, value, TCL_GLOBAL_ONLY) )
00018         {
00019                 bOK=(int)(FALSE);
00020         }
00021         else
00022         {
00023                 bOK=(int)(TRUE);
00024         }
00025 
00026         return bOK;
00027 }


Generated on Sun Mar 4 16:13:45 2007 for Scilab [trunk] by  doxygen 1.5.1