[Master Answer Logo]
Question

How to pass c class' member function as callback function?

Answer

Notice that the syntax for providing the callback to the sort_ints() function is identical, but an object is passed instead of a function pointer. When invoked the callback function is executed just as any other member function, and therefore has full access to the other members (data or functions) of the object.

— Source: Wikipedia (www.wikipedia.org)