Originally Posted by
ridgerunnersjw
What you posted works but only for [0] of the array
No, it works for the entire array:
Code:
struct s_rf s_radioMssg = {{'F', '1', '2', '3', '4', '5', '6', '7', '8', '9'}, T};
Originally Posted by
ridgerunnersjw
after reading online I found that memcpy seems to work quite well
It doesn't: your array does not store a null terminated string.
Originally Posted by
ridgerunnersjw
Ultimately I wanted to initialize the array but then I wanted to update the s_radioMssg.command = r_getFreq where r_getFreq is a char array
Use a loop to copy.