Skip to content

Instantly share code, notes, and snippets.

@ankit-rakha
Created June 26, 2013 01:16
Show Gist options
  • Save ankit-rakha/5863965 to your computer and use it in GitHub Desktop.
Save ankit-rakha/5863965 to your computer and use it in GitHub Desktop.
pointers to functions
// Define function
func1(){
...
}
// Pointer to function
void *func1_ptr = func1;
// Call to function using pointer
(*func1_ptr) ();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment