D
dd
Hello.
My primary goal is to initialize array of pointers to structures like
this:
struct R aa[]={
{"asd",{"dsa","dda"},{"441","882"}},
{"ddd",{"aaa","666"},{"111","772"}},
{"bbb",{"ddd","qqq"},{"551","222"}}};
Structure is: pointer to null-terminated string, and two pointers to
arrays of pointers to strings.
I'm try to declare structure as:
struct R
{
char *one;
char **two;
char **three;
};
But with no success. Does anybody knows how to do this?
My primary goal is to initialize array of pointers to structures like
this:
struct R aa[]={
{"asd",{"dsa","dda"},{"441","882"}},
{"ddd",{"aaa","666"},{"111","772"}},
{"bbb",{"ddd","qqq"},{"551","222"}}};
Structure is: pointer to null-terminated string, and two pointers to
arrays of pointers to strings.
I'm try to declare structure as:
struct R
{
char *one;
char **two;
char **three;
};
But with no success. Does anybody knows how to do this?