From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 4 18:51:45 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A164616A4CE for ; Mon, 4 Apr 2005 18:51:45 +0000 (GMT) Received: from hydra.bec.de (www.ostsee-abc.de [62.206.222.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3941843D54 for ; Mon, 4 Apr 2005 18:51:45 +0000 (GMT) (envelope-from joerg@britannica.bec.de) Received: from britannica.bec.de (unknown [139.30.252.72]) by hydra.bec.de (Postfix) with ESMTP id 2A8FF35707 for ; Mon, 4 Apr 2005 20:51:43 +0200 (CEST) Received: by britannica.bec.de (Postfix, from userid 1001) id 0D3557CFB; Mon, 4 Apr 2005 20:49:23 +0200 (CEST) Date: Mon, 4 Apr 2005 20:49:22 +0200 From: Joerg Sonnenberger To: freebsd-hackers@freebsd.org Message-ID: <20050404184922.GA22738@britannica.bec.de> Mail-Followup-To: freebsd-hackers@freebsd.org References: <42518AC9.5070208@comcast.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42518AC9.5070208@comcast.net> User-Agent: Mutt/1.5.9i Subject: Re: C programming question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Apr 2005 18:51:45 -0000 On Mon, Apr 04, 2005 at 11:43:21AM -0700, Matt wrote: > I need some help understanding some C code. > > int (*if_ioctl) > (struct ifnet *, int, caddr_t); > > int (*if_watchdog) > (int); > > Can someone break down these declarations (if that's what they are)? Is > this a form of typecasting? Thanks for your help. It's a variable if_ioctl which points to a function returning int and taking a struct ifnet, an int and a caddr_t argument. Similiar for if_watchdog. This might not be the best place to ask such questions though. Joerg