N
NKOBAYE027
can anyone tell me what this thing is supposed to do?
its from the stddef.h file for MSVC 6.0
#define offsetof(s,m) (size_t)&(((s *)0)->m)
I understand it up to the & after that I have *no* idea what is going
on...is s a variable or a type? what does the cast (s *) mean? is it a cast?
and what about this 0 thing? how do we know it has an m to point at? (Oo)
i'm clearly confused...
any clarifications would be welcome
regards,
L.
its from the stddef.h file for MSVC 6.0
#define offsetof(s,m) (size_t)&(((s *)0)->m)
I understand it up to the & after that I have *no* idea what is going
on...is s a variable or a type? what does the cast (s *) mean? is it a cast?
and what about this 0 thing? how do we know it has an m to point at? (Oo)
i'm clearly confused...
any clarifications would be welcome
regards,
L.