Is it possible to declare some function type func_t
which returns that type, func_t
?
In other words, is it possible for a function to return itself?
// func_t is declared as some sort of function pointer
func_t foo(void *arg)
{
return &foo;
}
Or would I have to use void *
and typecasting?