Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Apr 2005 20:49:22 +0200
From:      Joerg Sonnenberger <joerg@britannica.bec.de>
To:        freebsd-hackers@freebsd.org
Subject:   Re: C programming question
Message-ID:  <20050404184922.GA22738@britannica.bec.de>
In-Reply-To: <42518AC9.5070208@comcast.net>
References:  <42518AC9.5070208@comcast.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050404184922.GA22738>