Re: array of pointer to function support in GNU C

2010-09-16 Thread Zoltán Kócsi
On Thu, 16 Sep 2010 00:50:07 -0700 J Decker wrote: [...] > > int main(void) > > { > >    void *(*func)(void **); > >    func; > strange that this does anything... since it also requires a pointer to > a pointer... I think the compiler is right: "func" is a pointer to a function. Since the () op

Re: array of pointer to function support in GNU C

2010-09-16 Thread J Decker
On Wed, Sep 15, 2010 at 11:15 PM, ir_idjit wrote: > > i've been writing bits of codes where it requires to have an array or > "pointers to functions", so the decision of which function to execute is > indexed... (i know, a lot of you will say "well, that's a VERY specific of a > solution, there's

Re: array of pointer to function support in GNU C

2010-09-15 Thread Sebastian Redl
This list is really for the development of GCC, not for getting help in C. That said ... On Sep 15, 2010, at 11:15 PM, ir_idjit wrote: > but whatever i do it i just can't get it to work > code: > > some_header.h: > static void *(*oper_table)(void **); That's a pointer to a function taking