안녕하세요. 이번에는 구조체 초기화에 질문이 있어서 글 올립니다.
우선 간단한 소스를 보면,
- test.h -
typedef struct info{
unsigned short length;
unsigned short num;
}datainfo;
typedef struct convert{
unsigned short maker[3];
datainfo data[2];
}converttbl;
extern const converttbl table[];
- test.c -
#include "test.h"