Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!crdgw1!rpi!julius.cs.uiuc.edu!ux1.cso.uiuc.edu!news.iastate.edu!sharkey!amara!mcdaniel From: mcdaniel@adi.com (Tim McDaniel) Newsgroups: comp.lang.c Subject: Re: A question on Function declaration Message-ID: Date: 13 Feb 91 20:45:14 GMT References: <5806@agate.UUCP> <851@caslon.cs.arizona.edu> Sender: news@adi.COM Organization: Applied Dynamics International, Inc.; Ann Arbor, Michigan, USA Lines: 26 In-reply-to: dwebster@cs.arizona.edu's message of 13 Feb 91 05:11:13 GMT The program cdecl is helpful in such cases, although I think it's better to work with a precedence chart to figure out what it should be. declare f as function (int, int) returning pointer to function (float) returning int yields int (*f(int , int ))(float ) and declare f as function returning pointer to function returning int yields int (*f())() You can use one or the other depending on whether you have prototypes available or not. It has been posted on the net; e-mail me for a copy if you have to, but please check a comp.sources.unix and comp.sources.misc archive site first. -- "I'd hang you from my nipples ... but it would shock the children." Tim McDaniel Applied Dynamics Int'l.; Ann Arbor, Michigan, USA Internet: mcdaniel@adi.com UUCP: {uunet,sharkey}!amara!mcdaniel