Pointer to Structure -


I am trying to study a code that I have written.

The code below is defined as a straight ICB_CMD_, and then * ICB_PCMD, ICB_PCMD pointer to ICB_CMD_ ??

Type-tof structure ICBCMD_ {UINT8 u8MsgId; UINT8 u8Addr; UINT8 u8Length; UINT8 u8MainCmd; UINT8 u8SubCmd; UINT8 au8Data [BUFFER_LENGTH-5]; // 5: NQAC / ACK / NACD ID # BETS CRCL BuffeelEmth = 200} * ICB_PMD;

Even after this

  EXTERN ICB_PCMD icb_pRxCmd; EXTERN ICB_PCMD icb_pTxCmd; 

= "Text">

The "extern" keyword allows you to use the declared variable in any other source file.

There is some useful reading material on this topic:

Stack Overflow -
Stack Overflow -


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -