Date: Wed, 21 Mar 2001 01:54:34 -0800 From: Julian Elischer <julian@elischer.org> To: Peter Seebach <seebs@plethora.net> Cc: tech-kern@netbsd.org, bsd hackers <freebsd-hackers@freebsd.org> Subject: Re: Question regarding the array of size 0. Message-ID: <3AB87A5A.69562D89@elischer.org> References: <200103201903.f2KJ3LO16883@guild.plethora.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3AB87A5A.69562D89>