Expand|Select|Wrap|Line Numbers
- struct tags {
- char aname[100];
- int aval;
- .
- .
- .
- }*tgs;
Expand|Select|Wrap|Line Numbers
- tgs = struct tags get_id_tags(buf, tgs);
Expand|Select|Wrap|Line Numbers
- 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).