Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site flairvax.UUCP Path: utzoo!linus!security!genrad!grkermit!masscomp!clyde!floyd!harpo!seismo!hao!hplabs!hpda!fortune!amd70!decwrl!flairvax!kissell From: kissell@flairvax.UUCP (Kevin Kissell) Newsgroups: net.unix,net.lang.c Subject: Re: functions returning pointers to functions Message-ID: <297@flairvax.UUCP> Date: Wed, 14-Dec-83 18:03:52 EST Article-I.D.: flairvax.297 Posted: Wed Dec 14 18:03:52 1983 Date-Received: Sat, 17-Dec-83 01:28:05 EST Organization: Fairchild AI Lab, Palo Alto, CA Lines: 21 To declare a function returning a pointer to a function returning an integer, the construct int (*funcfunc())() is pretty standard. Things get confusing when the parameters are added. Steve's example of the form int (*getroutine())(name, table) does indeed fail under 4.1, but int (*getroutine(name, table))() will work just fine, and is more correct if you think about it. What I can't figure is how the first version worked under 2.8! Kevin D. Kissell Fairchild Research Center Advanced Processor Development uucp:{ucbvax!sun decvax allegra}!decwrl!flairvax!kissell