pass function as argument code example
Example 1: python function that takes a function
def myfunc(anotherfunc, extraArgs):
anotherfunc(*extraArgs)
Example 2: passing a function as an argument in c
void func ( void (*f)(int) );
def myfunc(anotherfunc, extraArgs):
anotherfunc(*extraArgs)
void func ( void (*f)(int) );