From owner-freebsd-hackers Wed Mar 21 3: 6:10 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.iinet.net.au (symphony-02.iinet.net.au [203.59.24.17]) by hub.freebsd.org (Postfix) with SMTP id C672A37B724 for ; Wed, 21 Mar 2001 03:06:04 -0800 (PST) (envelope-from julian@elischer.org) Received: (qmail 7739 invoked by uid 666); 21 Mar 2001 11:05:58 -0000 Received: from unknown (HELO elischer.org) (203.59.78.139) by mail.iinet.net.au with SMTP; 21 Mar 2001 11:05:58 -0000 Message-ID: <3AB87A5A.69562D89@elischer.org> Date: Wed, 21 Mar 2001 01:54:34 -0800 From: Julian Elischer X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en, hu MIME-Version: 1.0 To: Peter Seebach Cc: tech-kern@netbsd.org, bsd hackers Subject: Re: Question regarding the array of size 0. References: <200103201903.f2KJ3LO16883@guild.plethora.net> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Peter Seebach wrote: > > In message <3AB7A76B.2BCF5D6E@net.com>, Shankar Agarwal writes: > >Can someone pls tell me if it is possible to define an array of size 0. > > Not in C. GCC and most other compilers support it. I do it all the time (see all the various netgraph structures) however it must be the LAST item in the structure. It gives the address of the first byte AFTER the structure. This is very useful if the structure is a header of some sort. > > -s > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message -- __--_|\ Julian Elischer / \ julian@elischer.org ( OZ ) World tour 2000-2001 ---> X_.---._/ v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message