In the C structure, I defined a function pointer as follows:
typedef struct _sequence_t { const int seq[3]; typedef void (* callbackPtr)(); } sequence_t;
I want to initialize var of this type globally with
sequence_t sequences[] = { { { 0, 1, 2 }, toggleArmament }, };
And I keep getting an error telling me that there are too many initializers. How it works?
source share