NOTE: I am actively fiddling with this over on Ideone.
I have a (self-referential) structure:
typedef struct T_Function T_Function;
struct T_Function
{
T_Function * (* inhibits)[]; // pointer to array of pointers to this structure
};
and would like to use compound literals as the target of the inhibits
pointer. Something along the lines of
T_Function a, b, c;
a.inhibits = & (<type>) {&b, &c};
This could be done as follows but I am looking to understand the type specification so I can use compound literals.
T_Function a, b, c;
T_Function * ai[] = {&b, &c};
a.inhibits = &ai;
What is the appropriate type specification to replace <type>
above?