i have two structures
i want to access contents of q
for eg
p->q->size;
how to access size in the above mentioned way.......
thanks
Code:
struct glb_tab{
int thread_id;
struct inode_info *q;
};
struct inode_info{
int size;
int free_mem;
int arr[8];
};
struct glb_tab *p;
p = (struct glb_tab *)malloc(sizeof *p);
struct inode_info *q;
q = (struct inode_info *)malloc(sizeof *q);
for eg
p->q->size;
how to access size in the above mentioned way.......
thanks
Comment