[Tinyos-help] AMSend, T2 tutorial 3, K&R C,
nesC language questions
David Gay
dgay42 at gmail.com
Mon Jul 9 15:46:37 PDT 2007
On 7/9/07, John Griessen <john at ecosensory.com> wrote:
> What is the meaning of
> (BlinkToRadioMsg*) (call AMSend.getPayload(&pkt));
> in the top line? Is this the syntax for coercing to type BlinkToRadioMsg*?
Yes.
> Where in the docs is this syntax defined?
Sorry, but it is K&R C (well, excepting the calling an interface bit).
C's cast syntax is
(type)expression
which the above is an instance of.
David Gay
More information about the Tinyos-help
mailing list