offsetof
offsetof é uma macro da biblioteca ANSI C declarada em stddef.h. Ela fornece o offset de um membro de uma estrutura ou union em bytes com tipo size_t. Recebe dois parâmetros, o primeiro é o nome da estrutura e o segundo é o nome do membro da estrutura.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.