Skip to content

Instantly share code, notes, and snippets.

@HQarroum
Created August 3, 2021 00:34
Show Gist options
  • Save HQarroum/9097541a2948445d76dffd0ea06c8aa9 to your computer and use it in GitHub Desktop.
Save HQarroum/9097541a2948445d76dffd0ea06c8aa9 to your computer and use it in GitHub Desktop.
offsetof-definition
#define offsetof(st, m) ((size_t)(&((st*)0)->m))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment