[time-nuts] GPIB on HP5382B counter

Magnus Danielson magnus at rubidium.dyndns.org
Sat Oct 24 10:51:16 UTC 2009


Hal Murray wrote:
>>    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 &.

Indeed:
http://zone.ni.com/devzone/cda/tut/p/id/4727

Cheers,
Magnus



More information about the time-nuts mailing list