Subject: Re: Question regarding the array of size 0.
To: Peter Seebach <>
From: Julian Elischer <>
List: tech-kern
Date: 03/21/2001 01:54:34
Peter Seebach wrote:
> In message <>, 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

> -s
> To Unsubscribe: send mail to
> with "unsubscribe freebsd-hackers" in the body of the message

      __--_|\  Julian Elischer
     /       \
    (   OZ    ) World tour 2000-2001
---> X_.---._/