Possible Duplicate: How do you pass a function as a parameter in C?
Suppose I have a function called
check this
typedef void (*funct2)(int a); void f(int a) { print("some ...\n"); } void dummy(int a, funct2 a) { a(1); } void someOtherMehtod { callback a = f; dummy(a) }