Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site osiris.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!talcott!harvard!seismo!umcp-cs!aplvax!osiris!phil From: phil@osiris.UUCP (Philip Kos) Newsgroups: net.lang.c Subject: Array of pointers to functions Message-ID: <243@osiris.UUCP> Date: Fri, 19-Apr-85 18:39:24 EST Article-I.D.: osiris.243 Posted: Fri Apr 19 18:39:24 1985 Date-Received: Mon, 22-Apr-85 02:15:49 EST Distribution: net Organization: Johns Hopkins Hospital Lines: 23 An interesting question came up at work today. A programmer here was wondering how you would declare an array of pointers to functions returning pointers to integers. I've been able to generate code producing a single pointer to a function returning a pointer to an integer, as int *(*fp_ret_ip)(); but I've been unable to get the C compiler to accept an array version of this. Can this be done? I've tried every combination of paren- theses I could think of, but every time the comiler barfed on it. For the record, I'm using a Pyramid 90x running 4.2BSD/ SysV UNIX. Phil Kos The Johns Hopkins Hospital