F
Fred
Can anyone explain what the point of this is?
For example, code like:
typedef struct {
int alloc;
char *data;
} my_struct;
typedef my_struct my_type_t[1];
What's the advantage of making the my_type_t type an array of 1
my_struct? Why not either just make it a plain typedef for the struct,
or else make it a typedef for a pointer to the struct?
TIA!
For example, code like:
typedef struct {
int alloc;
char *data;
} my_struct;
typedef my_struct my_type_t[1];
What's the advantage of making the my_type_t type an array of 1
my_struct? Why not either just make it a plain typedef for the struct,
or else make it a typedef for a pointer to the struct?
TIA!