skip to main
|
skip to sidebar
Advanced C++ Techniques
Tuesday, August 4, 2009
Macro to return offset for structure member variable
#define offsetof(type, member) ((size_t)(&((type *)0)->member))
Very useful macro when dealing with file operations or from a buffer
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
My Favourites
C++ Reference
Followers
Blog Archive
►
2010
(1)
►
January
(1)
▼
2009
(2)
▼
August
(1)
Macro to return offset for structure member variable
►
July
(1)
About Me
VJ
View my complete profile
No comments:
Post a Comment