[time-nuts] GPIB on HP5382B counter

Hal Murray hmurray at megapathdsl.net
Sat Oct 24 06:34:40 UTC 2009


>    I'm out of practice with C, but shouldn't
> viScanf(vi, "%t", buf);
> be
> viScanf(vi, "%t", &buf);

[I'm not a language wizard.]

It looks OK to me.  Arrays are passed by pointer.
  buf is the same as &buf[0]

The compiler should complain if it is wrong.

A quick google found examples without the &.


For production code I'd want to tell viScanf the max length.


-- 
These are my opinions, not necessarily my employer's.  I hate spam.






More information about the time-nuts mailing list