4 ms·
> When writing low-level code it's really handy to know > the offset of a member in a struct. C provides offsetof() in <stddef.h> for that purpose, precisely
by kps 12y ago
> When writing low-level code it's really handy to know
> the offset of a member in a struct.
C provides offsetof() in <stddef.h> for that purpose, precisely because it's not expressible in C without compiler support.