I came across the following:
#define FIELDOFFSET(type,member) ( (size_t) &(((type*) 0)->member) )
I was amazed that the above can actually access individual members of a structure,
but, couldn't understand the syntax though.
How is it possible to access a structure member just by a typecast of zero?
Is there some general rule that I am missing?