P
parag_paul
#include <stdio.h>
struct _table_model_entry {
struct _table_model_entry *next;
int line_nr;
int nr_fields;
char *fields[0]; /* User defined */
};
int main(){
char * a,*b,*c,*d;
struct _table_model_entry tb;
tb.fields[0] = a;
tb.fields[1] = b;
}
But I dont get the use of an array size of 0 for member fields in the
struct _table_model_entry .
This was not compilable in AIX,
Is this a hack
struct _table_model_entry {
struct _table_model_entry *next;
int line_nr;
int nr_fields;
char *fields[0]; /* User defined */
};
int main(){
char * a,*b,*c,*d;
struct _table_model_entry tb;
tb.fields[0] = a;
tb.fields[1] = b;
}
But I dont get the use of an array size of 0 for member fields in the
struct _table_model_entry .
This was not compilable in AIX,
Is this a hack