Created
April 6, 2020 14:27
-
-
Save jserv/21bd32e13ea4e1a171946b734da53a4b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
static void test() { puts(__func__); } | |
int main() { | |
typedef void (*callback_t)(void); | |
callback_t cb = &test; | |
(*cb)(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment