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.
> 

This is a bit off topic :)

int     (*if_ioctl)(struct ifnet *, int, caddr_t);

pointer to a function that returns an int and that takes a struct ifnet *, an
int and a caddr_t as parameters.

int     (*if_watchdog)(int);

pointer to a function that returns an int and takes an int as parameter.



-- 
veins (aka chaton) - Chehade Gilles - [EMAIL PROTECTED] - promo 2006 (ept4)
        Astek, assistant crypto, delegue ept4, chercheur en vie meilleure ;-)
        "..the good guys win primarily because criminals are just so supid."
        -- bruce schneier
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to