How to determine the size of a structure without using the sizeof() operator