Subject: Re: Question regarding the array of size 0.
To: Lord Isildur <mrfusion@umbar.vaxpower.org>
From: Drew Eckhardt <drew@PoohSticks.ORG>
List: tech-kern
Date: 03/30/2001 10:23:36
In message <Pine.3.89.10103300924.A22782-0100000@umbar>, mrfusion@umbar.vaxpowe
r.org writes:
>
>
>which all begs the question... what is the point of an array of size 
>zero? 

To allow you to do variable length arrays at the end of structures in a 
portable (C99) or semi-portable (gcc) way


    struct records {
	unsigned flags;
	struct foo[0] data;
    };

without jumping through casting hoops.