Referencing pointer inside a structure pointer
I have a structure as follows
Here halfTurnTimeList is a linked list whose first element is pointer to arptList which is another linked list. I have allocated memory of halfTurnTimeList and pute it into variable name called node. I have created the linked list of arpt.But when i am trying to assign address of first note into the first element of halfTurnTimeList by following assignment
struct arptCd arpt;
struct arptCd *next;
struct arptList *arpt;
struct halfTurnTime halfTurnTimeData;
struct halfTurnTime *next;
Compiler showing error "struct halfTurnTimeListâ has no member named arpt".
I made following task
struct halfTurnTimeList *node=NULL
node=calloca as halfTurnTimeList
created linked list of Arpt node
node->arpt=firstArptNode. firstArptNode is the address of the first node.
How can i access a pointer member of structure pointer.
Thanks in advance