function repeat(f,n) { for (i=1; i<=n; i++) (*f)() } function hello() { printf("Hello\n") } repeat(&hello(),3)