C programming question
Juan J. Martínez
reidrac at usebox.net
Thu Jul 7 07:01:51 GMT 2005
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/
More information about the freebsd-hackers
mailing list