how do I create an array of pointers to a struct using malloc?
using malloc like this-
abc * a = (* abc)malloc(sizeof(abc)*10);
I get an array of struct objects. I can access member elements using the "." operator. eg a.xxxx
what I want is an array of pointers to struct abc, so that later i can do like-
a = (* abc)malloc(sizeof(abc));
and use the "->" operator to access elements.
any help would be appreciated.