C programming question
Joerg Sonnenberger
joerg at britannica.bec.de
Mon Apr 4 11:51:45 PDT 2005
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
More information about the freebsd-hackers
mailing list