Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ll-xn!cullvax!drw From: drw@cullvax.UUCP (Dale Worley) Newsgroups: comp.lang.c Subject: help with declaration Message-ID: <1300@cullvax.UUCP> Date: Fri, 19-Jun-87 14:30:57 EDT Article-I.D.: cullvax.1300 Posted: Fri Jun 19 14:30:57 1987 Date-Received: Mon, 22-Jun-87 03:01:38 EDT Organization: Cullinet Software, Westwood, MA, USA Lines: 22 atc@ut-sally.UUCP (Alvin T. Campbell III) writes: > I have a question for all you C wizards out there. I want to write > a function which returns a pointer to another function. I checked Kernighan > & Ritchie and Harbison & Steele, but found no solution. int (*(f ())) (); reading inside out: f is a function which returns a pointer to a function which returns int Though this may not be discussed explicitly in K&R or H&S, it is implied by the grammar and semantics discussed by both of them. Dale -- Dale Worley Cullinet Software ARPA: cullvax!drw@eddie.mit.edu UUCP: ...!seismo!harvard!mit-eddie!cullvax!drw If you light a match, how much mass does it convert into energy?