Given this struct :
typedef struct test {
char field1[20];
char *field2;
} test_s
How can initialize this kind of structure with a designated initializer, knowing that I want field2 to point to field1 ?
test_s test = {.field1[0] = '\0', .field2 = .field1};
doesn't work.