Is it possible to iterate of a C struct, where all members are of same type, using a pointer. Here\'s some sample code that does not compile:
#include
The easiest way would be to create a union, one part which contains each member individually and one part which contains an array. I'm not sure if platform-dependent padding might interfere with the alignment.