const unsigned char *asdf[] =
{
[ee1] = funtion1,
[ee2] = funtion2,
[ee3] = funtion3,
}
const unsigned char funtion1[] =
{
#include \"bc1/fasdf/das.cc\"
};
참고로 ee1 ,ee2 는 전부 enum 변수
이런 듣보잡 소스를 보게됐는데 이건 무슨 문법임?
포인터의 배열 선언에 저런식으로 [ ] 붙일수 있나요?
{
[ee1] = funtion1,
[ee2] = funtion2,
[ee3] = funtion3,
}
const unsigned char funtion1[] =
{
#include \"bc1/fasdf/das.cc\"
};
참고로 ee1 ,ee2 는 전부 enum 변수
이런 듣보잡 소스를 보게됐는데 이건 무슨 문법임?
포인터의 배열 선언에 저런식으로 [ ] 붙일수 있나요?
http://gcc.gnu.org/onlinedocs/gcc/Designated-Inits.html
아 저런 문법이 있었군요..ㄱㅅ 아 학교에선 왜 안알려준거야..
C99를 학교에서 가르칠리가 없다.