Date: Fri, 30 Mar 2001 10:23:36 -0700 From: Drew Eckhardt <drew@PoohSticks.ORG> To: Lord Isildur <mrfusion@umbar.vaxpower.org> Cc: tech-kern@netbsd.org, freebsd-hackers@FreeBSD.ORG Subject: Re: Question regarding the array of size 0. Message-ID: <200103301723.f2UHNaO25859@chopper.Poohsticks.ORG> In-Reply-To: Your message of "Fri, 30 Mar 2001 09:54:20 EST." <Pine.3.89.10103300924.A22782-0100000@umbar>
index | next in thread | previous in thread | raw e-mail
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.
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103301723.f2UHNaO25859>
