Why using a typedef *after* struct definition?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Both this style: struct _something { ... }; typedef struct _something someting; and that style: typedef struct _something { ... } something; are correct typedef declarations in C. Note that the presence of the structure declaration in the header file is made on purpose: I need to have access to the inner components of the structure somewhere else. One drawback of the first declaration is that when you use any IDE, the automatic "jump to declaration" often directs you to the typedef struct _something someting; instead of giving you directly