R
rdeml
I want a function that returns a function pointer to itself (or another
function of the same parameter set).
A function pointer to a function that takes nothing and returns nothing
is this:
typedef void (*FP)(void);
void Func(void);
FP fp;
fp = Func;
fp();
Now I want a function pointer to a function that returns a pointer to
the function:
typedef ???? (*FP)(void);
FP Func(void);
FP fp;
fp = Func;
fp = fp();
What do I put in the ?????
function of the same parameter set).
A function pointer to a function that takes nothing and returns nothing
is this:
typedef void (*FP)(void);
void Func(void);
FP fp;
fp = Func;
fp();
Now I want a function pointer to a function that returns a pointer to
the function:
typedef ???? (*FP)(void);
FP Func(void);
FP fp;
fp = Func;
fp = fp();
What do I put in the ?????