Path: utzoo!attcan!uunet!husc6!mailrus!uflorida!novavax!proxftl!bill From: bill@proxftl.UUCP (T. William Wells) Newsgroups: comp.lang.c Subject: Re: Recursive function declarations Message-ID: <528@proxftl.UUCP> Date: 23 Jul 88 12:59:04 GMT References: <323@sdrc.UUCP> <5298@june.cs.washington.edu> <1988Jul21.140240.12516@sq.uucp> Reply-To: bill@proxftl.UUCP (T. William Wells) Organization: Proximity Technology, Ft. Lauderdale Lines: 15 Summary: Expires: Sender: Followup-To: Distribution: Keywords: In article <1988Jul21.140240.12516@sq.uucp> msb@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.