I am lazy!! I don't want to have to write out a struct's full name any time I want to reference one of it's members.
Is there a with statement (or equivalent) in C e.g.
please can anyone help?
"Arrgh *hack* *cough* damn pretzels!!!!..."
Is there a with statement (or equivalent) in C e.g.
Code:
struct mystruct
{
int item1;
char item2;
float item3;
} struct1[20];
for(index = 0;index <20; index++)
{
with struct1[index]
{
.item1 = 1;
.item2 = "m";
.item2 = 4.35;
}
}
please can anyone help?
"Arrgh *hack* *cough* damn pretzels!!!!..."