31-03-2010, 07:25 AM
Hi,
I am finding a violation (with IBM logiscope) when i use an array within a structure.
so my structure is:
and my main:
mID tester;
for each assignment to .c i am told "pointer arithmetic only with array indexing"
thanks for any advice
matt
I am finding a violation (with IBM logiscope) when i use an array within a structure.
so my structure is:
Code:
typedef struct
{
unsigned char a;
unsigned char b;
unsigned char c[10];
unsigned char d;
}mID;
mID tester;
Code:
int main(void)
{
tester.a = 0x01;
tester.c[2] = 0x02;
tester.c[3] = 0x06;
tester.c[4] = 0x05;
return 0;
}
for each assignment to .c i am told "pointer arithmetic only with array indexing"
thanks for any advice
matt
<t></t>