Could it be that you think that alignof returns how much the size is off from the set alignment of 8?
(8+3) % 8 = 3
To get that you have to use:
sizeof(c) % alignof(c)
Best,
Sebastian
--
Sebastian Wittmeier