J
junky_fellow
I am trying to find the offset of a member "mbr" inside a structure
"str" as follows:
offset = &(struct str *)0->mbr;
But, on compilation I get the following error:
cc: Error: m1.c, line 55: In this statement, "0" has a signed int
type, but occurs in a context that requires a pointer. (needpointer)
Can anybody point out where the problem is ?
Thanx for any help in advance....
"str" as follows:
offset = &(struct str *)0->mbr;
But, on compilation I get the following error:
cc: Error: m1.c, line 55: In this statement, "0" has a signed int
type, but occurs in a context that requires a pointer. (needpointer)
Can anybody point out where the problem is ?
Thanx for any help in advance....