Sep 26, 2014 at 7:57pm UTC
hi all,
please see this example and say what should i do
1 2 3 4 5 6 7 8 9 10
typedef struct example_dt_struct {
int a;
float b;
char * c;
};
typedef void (*func)(example_dt_struct *s, int e, int f);
void f(func *n)
{
}
how can i use example_dt_structure with my function pointer into f()
thanks in advance
Last edited on Sep 26, 2014 at 7:59pm UTC
Sep 26, 2014 at 8:22pm UTC
ok, how can i access foo.a or foo.b or foo.c?
Sep 27, 2014 at 2:58am UTC
ok, how can i access a variable in a function type?
for example, from a function, get access to a parameter of a typedef?
Sep 27, 2014 at 5:41am UTC
In my example func is a typedef.