Mail Archives: djgpp/1997/02/26/10:50:38
Erik Max Francis wrote:
>
> 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.
Guys, did you evere read gcc info? Look closer at 'C Extensions'
chapter. ;)
So, my question was not about correctness of my code but about some
insidy
things of that extension.
--
Regards,
Dim Zegebart,
Moscow Russia.
- Raw text -