N
Neil
What I am doing wrong
This works
batPointer = adaptors[position].adaptor[channel]->batData;
adaptors[position].batteries[channel] = batPointer->battery;
where:
batData is a pointer to a struct
batPointer is a pointer to a different kind of struct
I want one line, but I get compiler errors, what is the correct syntax?
This works
batPointer = adaptors[position].adaptor[channel]->batData;
adaptors[position].batteries[channel] = batPointer->battery;
where:
batData is a pointer to a struct
batPointer is a pointer to a different kind of struct
I want one line, but I get compiler errors, what is the correct syntax?