c语言struct结构体不带类型名定义变量

如:

typedef struct {

  int timelineId;

  size_t len;

  WalRecord *walrec;

} WalData;

相当于只希望一个应用只有一个单例。对应于设计模式中常说的单例模式。

https://blog.csdn.net/weixin_40283460/article/details/112704812

posted @ 2023-12-27 22:13  zhjh256  阅读(10)  评论(0编辑  收藏  举报