Use offsetof() when sizing dynamic structures.
Base dynamic structure size on offsetof(), rather than subtracting the size of the dynamic structure member. Results could differ on systems with strict data structure alignment requirements.
Please register or sign in to comment