> 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.




_______________________________________________
time-nuts mailing list -- [email protected]
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.

Reply via email to