Re: C programming question

2005-07-07 Thread Mike Meyer
On Mon, 04 Apr 2005 11:43:21 -0700 Matt <[EMAIL PROTECTED]> 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

Re: C programming question

2005-07-07 Thread Juan J.
El mii, 06-07-2005 a las 13:56 -0400, Michael Shalayeff escribis: > [...] > > Those are declarations of pointers to functions. > > > > /* real function */ > > void dumb(int a) { return a; } > > warning: `return' with a value, in function returning void Obviously dumb must return int, not void.

Re: C programming question

2005-07-06 Thread Stuart Henderson
--On 06 July 2005 16:53 -0500, imEnsion wrote: Again, look at the original date from the email... apparently he's having some hardcore issues with his mail client and/or computer in general. I've just received this from the relevant postmaster after I let him know: "Yesterday we had a probl

Re: C programming question

2005-07-06 Thread J. Lievisse Adriaanse
On Wed, 6 Jul 2005 16:53:21 -0500 imEnsion <[EMAIL PROTECTED]> wrote: > Again, look at the original date from the email... It looks like some old e-mails finally got through...a whole load of them. >apparently he's > having some hardcore issues with his mail client and/or computer in > general.

Re: C programming question

2005-07-06 Thread imEnsion
Again, look at the original date from the email... apparently he's having some hardcore issues with his mail client and/or computer in general. On 7/6/05, chaton <[EMAIL PROTECTED]> wrote: > On Mon, 04 Apr 2005 11:43:21 -0700 > Matt <[EMAIL PROTECTED]> wrote: > > > I need some help understandin

Re: C programming question

2005-07-06 Thread chaton
On Mon, 04 Apr 2005 11:43:21 -0700 Matt <[EMAIL PROTECTED]> 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)

Re: C programming question

2005-07-06 Thread Michael Shalayeff
Making, drinking tea and reading an opus magnum from Juan J. [Mart_nez]: [Charset ISO-8859-1 unsupported, filtering to ASCII...] > El lun, 04-04-2005 a las 11:43 -0700, Matt escribis: > > [...] > > Can someone break down these declarations (if that's what they are)? Is > > this a form of typecast

Re: C programming question

2005-07-06 Thread Juan J.
El lun, 04-04-2005 a las 11:43 -0700, Matt escribis: > [...] > Can someone break down these declarations (if that's what they are)? Is > this a form of typecasting? Thanks for your help. Those are declarations of pointers to functions. /* real function */ void dumb(int a) { return a; } ... /*

C programming question

2005-07-06 Thread Matt
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.