"Boris Sargos" <bs*****@wanadoo.fr> wrote in message
news:c6**********@news-reader4.wanadoo.fr...
Hi,
I need to write a function that returns a pointer on a function. Is it
possible, and which is the syntax ?
Thanks.
Boris
Trying to do that without using a typedef is a real test of your
understanding of type declarations. The easy way is with a typedef
typedef void (*FUNC_PTR)(void); // or whatever
FUNC_PTR some_function()
{
...
}
It is however impossible to define a function that returns a pointer to
itself, that would mean an infinite recursion in the type of that function.
john