From owner-freebsd-questions@FreeBSD.ORG Tue Jun 30 01:53:53 2009 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 66901106566C for ; Tue, 30 Jun 2009 01:53:53 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from asmtpout011.mac.com (asmtpout011.mac.com [17.148.16.86]) by mx1.freebsd.org (Postfix) with ESMTP id 53A788FC0A for ; Tue, 30 Jun 2009 01:53:53 +0000 (UTC) (envelope-from cswiger@mac.com) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Received: from cswiger1.apple.com ([17.227.140.124]) by asmtp011.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0KM100FEK14PB450@asmtp011.mac.com> for questions@freebsd.org; Mon, 29 Jun 2009 17:53:14 -0700 (PDT) Message-id: From: Chuck Swiger To: Robert Huff In-reply-to: <19017.24376.343126.389436@jerusalem.litteratus.org> Date: Mon, 29 Jun 2009 17:53:13 -0700 References: <19017.24376.343126.389436@jerusalem.litteratus.org> X-Mailer: Apple Mail (2.935.3) Cc: questions@freebsd.org Subject: Re: OT: C syntax question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Jun 2009 01:53:53 -0000 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