Subject: Re: Question regarding the array of size 0.
To: der Mouse <mouse@Rodents.Montreal.QC.CA>
From: Richard Earnshaw <rearnsha@buzzard.freeserve.co.uk>
List: tech-kern
Date: 03/20/2001 22:08:21
> > I am getting the following array while trying to compile
> > uipc_syscalls.c file.
> 
> > /vobs/atm/netbsd/sys/sys/syscallargs.h", line 30: zero or negative subscript
> > This is because the code in syscallargs.h is defining an array of size 0.
> 
> > Can someone pls tell me if it is possible to define an array of size
> > 0.
> 
> In C, no; in gcc, yes.
> 

You can also do it in c98, provided it is the last element of a structure.

R.