Messages per Month
| From | Sent On | Attachments |
|---|---|---|
| Matt | Apr 4, 2005 11:43 am | |
| Devon H. O'Dell | Apr 4, 2005 11:49 am | |
| Marc Olzheim | Apr 4, 2005 11:49 am | |
| Joerg Sonnenberger | Apr 4, 2005 11:51 am | |
| Dan Nelson | Apr 4, 2005 11:55 am | |
| Mike Meyer | Apr 5, 2005 4:50 am | |
| gilles chehade | Apr 5, 2005 4:50 am | |
| Dunceor . | Apr 5, 2005 4:50 am | |
| ra...@redshift.com | Apr 5, 2005 5:25 am | |
| Peter Jeremy | Apr 7, 2005 1:36 am | |
| Stijn Hoop | Apr 7, 2005 1:39 am | |
| ra...@redshift.com | Apr 7, 2005 1:50 am | |
| ra...@redshift.com | Apr 7, 2005 1:51 am | |
| Zera William Holladay | Apr 7, 2005 7:24 am | |
| Robert Watson | Apr 7, 2005 12:08 pm | |
| Michael Shalayeff | Jul 7, 2005 12:08 pm | |
| chaton | Jul 7, 2005 12:08 pm | |
| Juan J. Martínez | Jul 7, 2005 12:10 pm | |
| Juan J. Martínez | Jul 7, 2005 12:10 pm | |
| Mike Meyer | Jul 8, 2005 12:25 pm |
| Subject: | C programming question | |
|---|---|---|
| From: | Marc Olzheim (marc...@stack.nl) | |
| Date: | Apr 4, 2005 11:49:08 am | |
| List: | org.freebsd.freebsd-hackers | |
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.
/usr/ports/devel/cdecl:
: 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
: explain int (*if_watchdog)(int);
declare if_watchdog as pointer to function (int) returning int
Marc





