From owner-freebsd-hackers Fri Mar 30 9:23:47 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from chopper.Poohsticks.ORG (chopper.poohsticks.org [63.227.60.73]) by hub.freebsd.org (Postfix) with ESMTP id BACAE37B71C for ; Fri, 30 Mar 2001 09:23:44 -0800 (PST) (envelope-from drew@chopper.Poohsticks.ORG) Received: from chopper.Poohsticks.ORG (drew@localhost.poohsticks.org [127.0.0.1]) by chopper.Poohsticks.ORG (8.10.1/8.10.1) with ESMTP id f2UHNaO25859; Fri, 30 Mar 2001 10:23:36 -0700 Message-Id: <200103301723.f2UHNaO25859@chopper.Poohsticks.ORG> To: Lord Isildur Cc: tech-kern@netbsd.org, freebsd-hackers@FreeBSD.ORG Subject: Re: Question regarding the array of size 0. In-reply-to: Your message of "Fri, 30 Mar 2001 09:54:20 EST." MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <25855.985973016.1@chopper.Poohsticks.ORG> Date: Fri, 30 Mar 2001 10:23:36 -0700 From: Drew Eckhardt Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message , 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