I know this is a super basic question but I've googled and searched here to no avail.
I have a structure for example:
struct name {
char var1;
char var2;
char *var3;
} struct1
I want to use the pointer *var3 something like this:
struct1.*var3++ = x;
In other words I want to store the value 'x' at the address pointed to by struct1.var3 and then point to the next address.
My above syntax is incorrect. Can anyone help?
I'm not actually using GCC. I'm using CodeVision but since there is no CV forum on here I thought I'd ask here and see if I can translate to CV speak.
Shannon