help with a MESSY C definition!!?
    rgh at inmet 
    rgh at inmet
       
    Sat Nov 19 16:02:00 AEST 1988
    
    
  
>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.
It looks correct to me.
What I would recommend, though, would be something like:
	typedef int *  (*opfunc_t)();
	opfunc_t opfuncs[] = { . . . };
Divide and conquer.
    Randy Hudson   rgh at inmet.inmet.com   uunet!inmet!rgh
    
    
More information about the Comp.lang.c
mailing list