Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!princeton!allegra!alice!ark From: ark@alice.UUCP Newsgroups: comp.lang.c Subject: Re: help with declaration Message-ID: <7001@alice.UUCP> Date: Wed, 17-Jun-87 23:45:07 EDT Article-I.D.: alice.7001 Posted: Wed Jun 17 23:45:07 1987 Date-Received: Sat, 20-Jun-87 00:46:57 EDT References: <8286@ut-sally.UUCP> Organization: AT&T Bell Laboratories, Liberty Corner NJ Lines: 17 Keywords: function pointer The problem: how to declare a function that returns a function pointer: int (*foo)(); foo = getfunc(); how to declare getfunc? Well, let's see: if we call getfunc(), dereference the result, and call that, we get an int. In other words, (*getfunc())() is an int, so we should say extern int (*getfunc())(); All clear?