作者davidsue (漫天紅筆的大紙)
看板C_and_CPP
標題[語法] struct中的宣告
時間Thu Jun 4 10:12:50 2009
請教高手們
static struct super_operation s_ops ={
.statfs = samele_statfus,
.drop_inode = generic_delete_indoe,
};
中 .statfs 的"."是什麼意思呢?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 98.244.105.68
1F:推 ledia:member variable, 如同 s_ops.statfs = sample_statfus; 06/04 10:14
2F:推 final01:這是GCC 的擴充可直接定位struct 內的欄位 06/04 12:12
3F:推 littleshan:這不是 GCC 的擴充,而是 C99 的標準 06/04 13:17
4F:→ final01:是喔~我一直以為GCC才有 06/04 16:15