M
Mr John FO Evans
Hi
Have already used function pointers to a simple subroutine ie
typedef void (*FPOINT)(void)
void func(void)
typedef struct
{
FPOINT func;
....
} name;
However when I try to do the same with:-
double func(int a, double b.....etc);
I get into a mess when I wish to equivalence two functions with:-
typedef union
{
FPOINT funca;
FPOINT funcb;
}joint;
even when I use
typedef double (*FPOINT)(inta, double b......)
Can anyone help a novice function pointer man!!
John
Have already used function pointers to a simple subroutine ie
typedef void (*FPOINT)(void)
void func(void)
typedef struct
{
FPOINT func;
....
} name;
However when I try to do the same with:-
double func(int a, double b.....etc);
I get into a mess when I wish to equivalence two functions with:-
typedef union
{
FPOINT funca;
FPOINT funcb;
}joint;
even when I use
typedef double (*FPOINT)(inta, double b......)
Can anyone help a novice function pointer man!!
John