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
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.
--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
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.
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
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)
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
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; }
...
/*
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.
9 matches
Mail list logo