1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how to use vector(tcl object) in C

Discussion in 'C' started by cimon, Jun 3, 2008.

  1. cimon

    cimon New Member

    Feb 9, 2007
    Likes Received:
    Trophy Points:

    man vector gives

           vector -  Vector data type for Tcl
           vector create vecName ?vecName...? ?switches?
    This I saw somewhere has been used in C code as follows
    cellWidth = vector(1, numNodes);
    cellHeight = vector(1, numNodes);

    I wanted to know, how can this vector can be used.
    Because when I tried to use it, it said be vector not declared, is ther some particular way to use TCL object. As it is C code, so i m sure it is not at all related to vector class

    can some one shed some light if this is vector what I am thinking of, because I didn't found any vector defination in any other file, where I saw this use of vector.

    I am Feisty Fawn (7.04)(Ubuntu Linux) and use gcc.

    -Thank You

Share This Page