By writing on_p = pause(); you assign the return value of the function pause to on_p. What you originally wanted to do is assigning the function pause to on_p. Simply ommit the brackets like in "on_p = pause;" and you should be fine. Ensure theassignment happens inside a function, e.g. in your main function.


Always learn from history, to be sure you make the same mistakes again...