I want to create a function that performs a function passed by parameter on a set of data. How do you pass a function as a parameter in C?
You need to pass a function pointer. The syntax is a little cumbersome, but it's really powerful once you get familiar with it.