Questions tagged «flexible-array-member»

5
零元素数组的需求是什么?
在Linux内核代码中,我发现了以下我无法理解的东西。 struct bts_action { u16 type; u16 size; u8 data[0]; } __attribute__ ((packed)); 代码在这里:http : //lxr.free-electrons.com/source/include/linux/ti_wilink_st.h 零元素数据数组的需求和目的是什么?

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.