Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 Jul 2005 09:01:34 +0200
From:      "Juan J." =?ISO-8859-1?Q?Mart=EDnez?= <reidrac@usebox.net>
To:        Michael Shalayeff <mickey@lucifier.net>
Cc:        freebsd-hackers@FreeBSD.ORG, misc@openbsd.org, Matt <mhersant@comcast.net>
Subject:   Re: C programming question
Message-ID:  <1120719694.8677.1.camel@localhost.localdomain>
In-Reply-To: <200507061756.j66HuKNJ018494@lucifier.net>
References:  <200507061756.j66HuKNJ018494@lucifier.net>

next in thread | previous in thread | raw e-mail | index | archive | help
El mié, 06-07-2005 a las 13:56 -0400, Michael Shalayeff escribió:
> [...]
> > 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.

> [...]
> > Any good book about C should cover this. Look for OOP in C also, it's
> > frequent use pointers to functions + structs to add classes to C.
> 
> perhaps you should read that book first (:

I'd say I must shut up before answer a mail totally off-topic.

regards,

Juanjo

-- 
Desarrollo y sistemas: http://www.usebox.net/
      Página Personal: http://www.usebox.net/jjm/






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1120719694.8677.1.camel>