#include <tcl.h> Tcl_Obj * Tcl_ObjSetVar2(interp, part1Ptr, part2Ptr, newValuePtr, flags) Tcl_Obj * Tcl_ObjGetVar2(interp, part1Ptr, part2Ptr, flags)
The variable name specified to Tcl_ObjSetVar2 consists of two parts. part1Ptr contains the name of a scalar or array variable. If part2Ptr is NULL, the variable must be a scalar. If part2Ptr is not NULL, it contains the name of an element in the array named by part2Ptr. As a special case, if the flag TCL_PARSE_PART1 is specified, part1Ptr may contain both an array and an element name: if the name contains an open parenthesis and ends with a close parenthesis, then the value between the parentheses is treated as an element name (which can have any string value) and the characters before the first open parenthesis are treated as the name of an array variable. If the flag TCL_PARSE_PART1 is given, part2Ptr should be NULL since the array and element names are taken from part2Ptr.
The flags argument may be used to specify any of several options to the procedures. It consists of an OR-ed combination of any of the following bits:
Copyright © 1989-1994 The Regents of the University of California.
Copyright © 1994-1997 Sun Microsystems, Inc.