title: Nested structure with array of structure pointer
body: <p>Main structure</p>
  
  <pre><code>typedef struct {
     uint8 u8Status;
     uint8 u8NeighborTableEntries;
     uint8 u8StartIndex;
     uint8 u8NeighborTableListCount;
     /* Rest of the message is variable length */
     ZPS_tsAplZdpDiscNtEntry* pNetworkTableList;
                                                //pNetworkTableList is a pointer to 
                                                //the first   
                                                //entry in the list of reported
                                                //Neighbour table entries
   } ZPS_tsAplZdpMgmtLqiRsp;
  
  
  typedef struct
  {
     uint64 u64ExtPanId;
     uint64 u64ExtendedAddress;
     uint16 u16NwkAddr;
     uint8 u8LinkQuality;
     uint8 u8Depth;
     union
     {
       struct
       {
         unsigned u2DeviceType:2;
         unsigned u2RxOnWhenIdle:2;
         unsigned u2Relationship:3;
         unsigned u1Reserved1:1;
         unsigned u2PermitJoining:2;
         unsigned u6Reserved2:6;
      } ;
      uint8 au8Field[2];
   } uAncAttrs;
  } ZPS_tsAplZdpDiscNtEntry;
  </code></pre>
  
  <p>i have defined ZPS_tsAplZdpMgmtLqiRsp *pointer;</p>
  
  <p>this seems to be okay.. </p>
  
  <pre><code>pointer-&gt;u8Status
  pointer-&gt;u8NeighborTableEntries
  pointer-&gt;u8StartIndex
  pointer-&gt;u8NeighborTableListCount
  </code></pre>
  
  <p>but how can i access those values inside the ZPS_tsAplZdpDiscNtEntry structure</p>