I have 2 structures:
typedef struct
{
int a;
} S1;
typedef struct
{
S1[0xff];
} S2;
Let's say I only require the element 0xf0 out of S2->S1, and the rest will be zero or whatever, unimportant.
I fill the struct like such:
S2 g_s2[] = {
// 0x00
{ 0 },
// 0x01
{ 1 }
}
Is there some way to pad the first X number of elements so I dont have to type {0},{0},{0}, 200 times to get there?