C programming question
chehad_g at epitech.net
Mon Apr 4 11:57:10 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)
> 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.
pointer to a function that returns an int and takes an int as parameter.
veins (aka chaton) - Chehade Gilles - chehad_g at epitech.net - 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
More information about the freebsd-hackers