2009-11-25から1日間の記事一覧
自己参照構造体のtypedef宣言 // 駄目なパターン typedef struct { int data; hoge_t *next; } hoge_t; // いけるパターン typedef struct __hoge_t { int data; struct __hoge_t *next; } hoge_t;
自己参照構造体のtypedef宣言 // 駄目なパターン typedef struct { int data; hoge_t *next; } hoge_t; // いけるパターン typedef struct __hoge_t { int data; struct __hoge_t *next; } hoge_t;