atom feed20 messages in org.freebsd.freebsd-hackersC programming question
FromSent OnAttachments
MattApr 4, 2005 11:43 am 
Devon H. O'DellApr 4, 2005 11:49 am 
Marc OlzheimApr 4, 2005 11:49 am 
Joerg SonnenbergerApr 4, 2005 11:51 am 
Dan NelsonApr 4, 2005 11:55 am 
Mike MeyerApr 5, 2005 4:50 am 
gilles chehadeApr 5, 2005 4:50 am 
Dunceor .Apr 5, 2005 4:50 am 
ra...@redshift.comApr 5, 2005 5:25 am 
Peter JeremyApr 7, 2005 1:36 am 
Stijn HoopApr 7, 2005 1:39 am 
ra...@redshift.comApr 7, 2005 1:50 am 
ra...@redshift.comApr 7, 2005 1:51 am 
Zera William HolladayApr 7, 2005 7:24 am 
Robert WatsonApr 7, 2005 12:08 pm 
Michael ShalayeffJul 7, 2005 12:08 pm 
chatonJul 7, 2005 12:08 pm 
Juan J. MartínezJul 7, 2005 12:10 pm 
Juan J. MartínezJul 7, 2005 12:10 pm 
Mike MeyerJul 8, 2005 12:25 pm 
Subject:C programming question
From:Mike Meyer (mw@mired.org)
Date:Jul 8, 2005 12:25:34 pm
List:org.freebsd.freebsd-hackers

On Mon, 04 Apr 2005 11:43:21 -0700 Matt <mher@comcast.net> wrote:

I need some help understanding some C code.

cdecl (devel/cdecl) is your friend.

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

explain int (*if_ioctl)(struct ifnet *, int, caddr_t) declare if_ioctl as pointer to function (pointer to struct ifnet, int, caddr_t)
returning int

int (*if_watchdog) (int);

explain int (*if_watchdog)(int) declare if_watchdog as pointer to function (int) returning int

The formatting on this one is strange.

<mike