help with a MESSY C definition!!?

Joe English english at stromboli.usc.edu
Sat Nov 19 09:30:25 AEST 1988


In article <207600008 at s.cs.uiuc.edu> dlee at s.cs.uiuc.edu writes:
>
>I usually don't have any trouble with C, but this is a glaring exception:  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!!!).  
									 
Let's see, that would be int *(*a)()[], umm, int (*)[][](a), no, er,
int (**a[*])(:-), no, um, hmph...


   typedef int *(*pfpi)();
   pfpi opfuncs[];


So that would make opfuncs of type:

>My closest (possibly correct) guess follows:
>
>	int *(*opfuncs[])() = {
        ^^^^^^^^^^^^^^^^^^^

about like that.

>Doug Lee


--Joe English



More information about the Comp.lang.c mailing list