Date: Mon, 29 Jun 2009 17:53:13 -0700 From: Chuck Swiger <cswiger@mac.com> To: Robert Huff <roberthuff@rcn.com> Cc: questions@freebsd.org Subject: Re: OT: C syntax question Message-ID: <B4F56B5C-254D-4825-960F-2F720A5B3089@mac.com> In-Reply-To: <19017.24376.343126.389436@jerusalem.litteratus.org> References: <19017.24376.343126.389436@jerusalem.litteratus.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi-- On Jun 29, 2009, at 5:41 PM, Robert Huff wrote: > and the compiler does not complain. If, however, I try to > prototype the function as: > > extern int plate_shift(struct CONTINENT *[][],int,float); > > with: > > CFLAGS = -Wall -std=c99 > > I get: > > error: array type has incomplete element type You need to provide the size for all but the first element; see K&Rv2 section 5.9 (p 113), or something like: http://home.netcom.com/~tjensen/ptr/ch7x.htm Regards, -- -Chuck
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B4F56B5C-254D-4825-960F-2F720A5B3089>