Hi Tom,
Try this...
HPCIGETVAR(14, varname, &status,
10,&strlen,
2, varvalu,
0, 0, 0, 0, 0, 0, 0, 0);
The procedure HPCIGETVAR is defined as extensible 14. There are only 14
parameters to this routine, the varname, the status and 6 pairs of item/itemnums.
Therefore ALL 14 are required. No idea why it's defined as extensible when
all parameters are required to be passed anyway.
HTH
Bill
HP/CSY
[log in to unmask]
< snip >
> HPCIGETVAR(/* PARM COUNT: */ 6,
> varname,&status,
> 10,&strlen,
> 2, varvalu);
>
>doesn't "fail spectactularly" -- it just simply fails...
>
>R:[/EMERSON/WORK]> gcc -o psysidx psysidx.c
>R:[/EMERSON/WORK]> ./psysidx
>The system name starts with Z
>
>[the output should have been "the system name starts with R", since
>HPSYSNAME has the value "RAVEN"]
>
|