[time-nuts] GPIB on HP5382B counter

Hal Murray hmurray at megapathdsl.net
Sat Oct 24 19:46:39 UTC 2009


> If buf is defined as an array (eg. char buf[100];) its name is a
> constant that points to the start of the array.  You can write it
> either as buf, or &buf. 

Not quite.  You need &buf[0]

  buf is a pointer to the array. (first element)
  &buf is a pointer to that pointer.
  &buf[0] is a pointer to the first element of the array.


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







More information about the Time-nuts_lists.febo.com mailing list