摘要: 结构体最后一个成员为数组 struct example { uint8_t a; uint16_t b; uint8_t a[0]; } 使用方式 malloc(sizeof(struct example) + buffer_len); 与指针不同,大小为0的数组成员无需初始化,便于释放内存,且只需 阅读全文
posted @ 2021-10-18 00:41 Howe1024_Li 阅读(306) 评论(0) 推荐(0)