Experience in learning the typedef list has been defined with a typedef pointer, not really understand, there are some waves in the blogger's blog written in great detail, I glued directly over
Suppose we define a structure:
typedef struct ANSWER_HEADER { u8 u8Type; u8 u8Code; u32 u32TimeStamp; struct ANSWER_HEADER *pNext; }ANSWER_HEADER_T, *PANSWER_HEADER_T;
ANSWER_HEADER for the structure name, the name contains useful mainly to himself as a member variable of time (in the structure because of the implementation of the sixth row, Alias has not yet been compiled, so the sixth row can only be defined with names that refer to this structure pointer to a structure. )
ANSWER_HEADER_T alias struct ANSWER_HEADER of
PANSWER_HEADER_T alias for the struct ANSWER_HEADER *
A manner equivalent to the above definition
struct ANSWER_HEADER { u8 u8Type; u8 u8Code; u32 u32TimeStamp; struct ANSWER_HEADER *pNext; }; typedef struct ANSWER_HEADER ANSWER_HEADER_T; typedef struct ANSWER_HEADER *PANSWER_HEADER_T;
ANSWER_HEADER_T and then can be used to define variables PANSWER_HEADER_T, such as
PANSWER_HEADER_T L; // define a pointer pointing ANSWER_HEADER L
Equivalent to
ANSWER_HEADER *L;
Portal: typedef struct and pointers - L4EX's blog - CSDN blog
https://blog.csdn.net/u013814701/article/details/52996544
ref: [C language] 23-typedef - M had a J - blog https://www.cnblogs.com/mjios/archive/2013/03/24/2979482.html Park