I'm struggling with this syntax: I have a few structs of arrays:
struct Msg {
uint8_t Data[DATA_SIZE];
};
struct Msg Msg_Buff[NUM_MESSAGES], Temp_Buff[NUM_MESSAGES];
and want to copy one array from one struct to another.
This:
*Temp_Buff[Other_Indx].Data = *Msg_Buff[This_Indx].Data;
copies ONLY the first element of the array, not the whole array. What am I doing wrong?