Como inicializar matriz de ponteiros para funções?
Eu tenho o seguinte código:
typedef int (*t_Function) (int x);
t_Function Functions[MAX_FUNCTIONS];
int f(int x)
{
return 0;
}
Mas não consigo inicializá-lo corretamente. Se eu adicionar a seguinte linha:
Functions[0] = f;
o compilador gera o seguinte erro:
prog.c:217: warning: data definition has no type or storage class
prog.c:217: error: conflicting types for Functions
Como inicializar essa matriz de ponteiros para funções?