E
Evangelista Sami
hello
i haven't touch any C code for long time and i dont remember how to
declare an array of pointers on functions. i have tried this :
-----------------------
35 void firing_1
36 (firing f,
37 int *old_m,
38 int *new_m);
39
40 const void (*firing_table[1])
41 (firing,
42 int *,
43 int *) =
44 {
45 firing_1
46 };
------------------------
but the compiler says :
__firings__.h:46: warning: initialization from incompatible pointer
type
my gcc version is 2.8.1.
any idea?
thanks for any response
i haven't touch any C code for long time and i dont remember how to
declare an array of pointers on functions. i have tried this :
-----------------------
35 void firing_1
36 (firing f,
37 int *old_m,
38 int *new_m);
39
40 const void (*firing_table[1])
41 (firing,
42 int *,
43 int *) =
44 {
45 firing_1
46 };
------------------------
but the compiler says :
__firings__.h:46: warning: initialization from incompatible pointer
type
my gcc version is 2.8.1.
any idea?
thanks for any response