Path: utzoo!utgpu!watmath!clyde!att!rutgers!gatech!uflorida!novavax!hcx1!hcx2!danr From: danr@hcx2.SSD.HARRIS.COM Newsgroups: comp.lang.c Subject: Re: help with a MESSY C definition!!? Message-ID: <44100015@hcx2> Date: 19 Nov 88 18:59:00 GMT References: <207600008@s.cs.uiuc.edu> Lines: 43 Nf-ID: #R:s.cs.uiuc.edu:207600008:hcx2:44100015:000:1672 Nf-From: hcx2.SSD.HARRIS.COM!danr Nov 19 13:59:00 1988 /* Written 12:09 am Nov 16, 1988 by dlee@s.cs.uiuc.edu in hcx2:comp.lang.c */ /* ---------- "help with a MESSY C definition!!?" ---------- */ > [intro] I > need the syntax of definition for an array (of arbitrary size) of pointers to > functions returning pointers to integer (HOW'S *THAT* FOR A DOOZY!!!). My > closest (possibly correct) guess follows: > > int *(*opfuncs[])() = { > . > . > . > }; > >I would appreciate any corrections/verifications. > Doug Lee /* End of text from hcx2:comp.lang.c */ By my copy of cdecl: me: "explain int *(*opfuncs[])()" cdecl: "declare opfuncs as array of pointer to function returning pointer to int" so it looks as though you hit the right one on the first shot. Good luck. ______________________________________________________________________________ PARA-QUOTE: It is better to remain quiet and be thought a fool, than to open one's mouth and remove all shade of doubt. ______________________________________________________________________________ || Internet: danr@hcx1.ssd.harris.com Daniel G. Rittersdorf || Harris Corporation || ...!novavax---\ Computer Systems Division || UUCP: ...!uunet-------!hcx1!danr Fort Lauderdale, FL 33309 || ...!mit-eddie-/ || ------------------------------------------------------------------------------ DISCLAIMER: The opinions expressed above are mine, Mine MINE! Anyone else that wants one will have to look elsewhere. That includes Harris. ------------------------------------------------------------------------------