Skip to content

Instantly share code, notes, and snippets.

@preslavrachev
Created September 1, 2012 11:27
Show Gist options
  • Save preslavrachev/3570396 to your computer and use it in GitHub Desktop.
Save preslavrachev/3570396 to your computer and use it in GitHub Desktop.
#include <iostream>
using namespace std;
void theWrapperFunction(int (*fnc) ()) {
cout << fnc();
}
int theCallBackFunction() {
return 12345;
}
//here starts the show
int main (int argc, char * const argv[]) {
theWrapperFunction(theCallBackFunction)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment