Manuals >Reference >Controlling IC-CAP from Another Application
Print version of this Book (PDF file)
prevnext

Details of the LinkReturnS Structure

 struct LinkReturnS {
    char type;
    int indx;
    int asize;
    union{char c_val;
          int i_val;
          double r_val;
          double *a_val;
          char *s_val;
    } value;
 };

type is a single character denoting type of data being passed: I (Int), C (Char), R (Real), S (String) or X (array).

indx refers to the index field of an ICMSXXXX function call. This is the index into which ICMS is to place the data.

asize is the size of the array that is passed in. This is 1 for type I, C, and R. For S, it is the length of the array. For X, it is the number of points in the data array.

union contains arguments where each x_val corresponds to the type character.


prevnext