Grumpy is right......
with additional modification it can work wonders.....
Code:typedef struct{ int b; int len; statusrecord stRec[]; } rsp; adding len field, which can take dynamic values....... rsp *francis; francis = malloc(sizeof(rsp)+len)
Grumpy is right......
with additional modification it can work wonders.....
Code:typedef struct{ int b; int len; statusrecord stRec[]; } rsp; adding len field, which can take dynamic values....... rsp *francis; francis = malloc(sizeof(rsp)+len)
yeah its not valid.....I was under the impression this way one can make the structure dynamic..