Indefinite-length array as member of struct: how?
Jonathan
asst-jos at yetti.UUCP
Mon Jul 10 23:57:54 AEST 1989
I'm no guru, but don't user
char string[];
in your struct. Use
char *string;
Remember that although by definition, the name of an array is a pointer
to the array, there are certain limitations. If I remember correctly,
you can't user the name of a declared as a pointer. namely
char string[SIZE];
*string = ....
is invalid.
Jeffrey Klein
More information about the Comp.lang.c
mailing list