Mail Archives: djgpp/1997/02/26/01:58:59
Dim Zegebart wrote:
> typedef struct
> { int hName;
> char szName[0];
> } TFoo;
...
> My question is : then I allocate space for MyFoo where actualy
> MyFoo->szName points ?
What you are trying to do is create variable-language records, which is not
a good idea in C.
You cannot created zero-length arrays. This makes no conceptual sense
whatsoever in C.
--
Erik Max Francis, &tSftDotIotE / email: max AT alcyone DOT com
Alcyone Systems / web: http://www.alcyone.com/max/
San Jose, California, United States / icbm: 37 20 07 N 121 53 38 W
\
"I am become death, / destroyer of worlds."
/ J. Robert Oppenheimer (quoting legend)
- Raw text -