Shailendra B. answered 03/29/19
Software technical lead with 28 years experience in Embedded/Linux/C
See code snippet below. You can define a function that takes a function pointer as input. In example below it takes 2 integers and returns an integer
#include <stdio.h>
typedef int (*function_ptr_t)(int, int);
int
test1 (int param1, int param2)
{
return param1 + param2;
}