passing function as parameter in c