In the 'calling()' function I declare the following pointer:
I then call the 'called()' function like such:
The 'called()' function looks like this:
When I try to compile, I get the following warnings:
"warning: passing argument 2 of 'get_id_tags' from incompatible pointer type"
"warning: assignment from incompatible pointer type"
both regard the function call.
I have tried with various level of indirection, but unsuccessfully.
I have used such structures before, but either as globals, or processed in the same function.
I simply cannot understand what I,m doing wrong, and would be grateful if
some good soul can help me out.
I'm not a student (unfortunately) , i'm 65.
Thank anybody for the attention.
Regards Sergio (trycstruct).
Code:
struct tags { char aname[100]; int aval; . . . }*tgs;
Code:
tgs = struct tags get_id_tags(buf, tgs);
Code:
struct tags *get_id_tags(char *bu, struct tags *tg) { /* statements here*/ return tg; }
"warning: passing argument 2 of 'get_id_tags' from incompatible pointer type"
"warning: assignment from incompatible pointer type"
both regard the function call.
I have tried with various level of indirection, but unsuccessfully.
I have used such structures before, but either as globals, or processed in the same function.
I simply cannot understand what I,m doing wrong, and would be grateful if
some good soul can help me out.
I'm not a student (unfortunately) , i'm 65.
Thank anybody for the attention.
Regards Sergio (trycstruct).
Comment