Having just seen What does the following macro do? I gotta ask my own question: why do so many applications’ headers define offsetof themselves? Is there some reason why <stddef.h> is not to be relied upon?
Having just seen What does the following macro do? I gotta ask my own
Share
I don’t think it’s that they distrust the standard
offsetof— at least from what I’ve seen, it’s usually that they’re just unaware of it.