#include //This one is VERY simple: //It has a function that, when provided with two values and a comparator, //returns the result of applying that comparator //Yes, I know that's silly. It's just to demonstrate a callback int compare(int a, int b, int (*comparator)(int,int)) { printf("Comparing %i and %i.\n",a,b); return comparator(a,b); }