Hi again!
In my program i have declared a function with this prototype:
When i do: function(pointer_hello);Code:int function(void *var) //The second argument is a void * pointer Also i have a struct typedef struct hello hello; struct hello { char *a; char *b; int l; int t; struct hello *next; }; hello *pointer_hello;
I get the warnings:
warning: dereferencing `void *' pointer
test.c:516: error: request for member `a' in something not a structure or union
warning: dereferencing `void *' pointer
test.c:517: error: request for member `b' in something not a structure or union
warning: dereferencing `void *' pointer
test.c:518: error: request for member `l' in something not a structure or union
warning: dereferencing `void *' pointer
test.c:519: error: request for member `t' in something not a structure or union
What shall i change in my program?
Well the problem is that the argument of the function "function" has to be void in order
not only to take a pointer to a hello struct but to any other struct!
Thanks, in advance!