Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site genrad.UUCP Path: utzoo!linus!security!genrad!john From: john@genrad.UUCP (John Nelson) Newsgroups: net.unix,net.lang.c Subject: Re: functions returning pointers to functions Message-ID: <3733@genrad.UUCP> Date: Tue, 13-Dec-83 15:26:25 EST Article-I.D.: genrad.3733 Posted: Tue Dec 13 15:26:25 1983 Date-Received: Wed, 14-Dec-83 01:46:59 EST References: <2430@azure.UUCP> Organization: GenRad, Bolton, Mass. Lines: 10 I believe that the easiest way to get around the problem is to use a typedef: typedef int (*FUNCTION)(); then you can declare the function returning a pointer to function as: FUNCTION getroutine(name, table) This SHOULD work with all K&R C compilers