I
InuY4sha
Yo, me again ^_^
say I have a structure of this type
typedef struct{
int data;
int *(*foo)(void *obj1, void *obj2);
}mystruct;
I'd like to know if and how I can use the function "container_of"
within foo, to track back the pointer of the allocated "mystruct"
instance.
Thanks,
R
say I have a structure of this type
typedef struct{
int data;
int *(*foo)(void *obj1, void *obj2);
}mystruct;
I'd like to know if and how I can use the function "container_of"
within foo, to track back the pointer of the allocated "mystruct"
instance.
Thanks,
R