[an error occurred while processing this directive]
|
Может объявляться как [], так и [0]. Зависит от компилятора, AFAIR.
Из хелпа:
struct str {
char a;
unsigned long b[];
};
struct str * GetAStr(int size) {
return malloc(sizeof(struct str) + sizeof(unsigned long) * size);
}
void UseStr(struct str * s) {
s->b[10] = 0;
}