Recursive function declarations

T. William Wells bill at proxftl.UUCP
Sat Jul 23 22:59:04 AEST 1988


In article <1988Jul21.140240.12516 at sq.uucp> msb at sq.com (Mark Brader) writes:
: > You need to declare it as returning a most-general pointer (void* if you
: > have one) and then cast it when you call...
:
: He's wrong.
:
: That trick doesn't work because function pointers can't necessarily be
: fitted into object pointers.  void * (if provided, else char *) is only
: the most general OBJECT pointer type.  Apparently there exists an
: implementation where function pointers are several times larger than
: object pointers.

Yes, but you can also use a function pointer, any function
pointer, as a generic function pointer; at least as far as ANSI
is concerned.



More information about the Comp.lang.c mailing list