You Just Nest It
This is a pointer to a function that doesn't return anything.
What if I want to make a function that takes no argument and returns such a pointer?
Let's call it getfunc, and suppose it takes no argument itself (so it's basically
As the title suggests, you just nest it. See the
void (* f )(void);
f is a variable of the type you want the function to return. So, replace
f with the function.
I've always wondered how you do that without typedefs. I always had this idea it was impossible, for some reason.