Subject: Re: Question regarding the array of size 0.
To: Peter Seebach <seebs@plethora.net>
From: Julian Elischer <julian@elischer.org>
List: tech-kern
Date: 03/21/2001 01:54:34
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