Peter Memishian wrote:
> The C99 standard supports this through flexible array members.
>
>     struct {
>       uint32 length;
>       uint16 buffer[];
>     } a;
>
> AFAIK, recent versions of either compiler support this feature.
Yes, sun cc support this feature :-)

Sorry that I didn't put all things into the first post :-[ It still
doesn't work with sun CC. The error is: In this declaration "buffer" is
of an incomplete type "int[]".

Thanks,
-Alfred

Reply via email to