C structs contain padding, which may or may not be initialized to zeroes when the structure is initialized. As such, comparing structs byte-for-byte may fail on some compilers even if the structures do in fact contain the exact same data in their field. Change tests to wean off memcmp().
C structs contain padding, which may or may not be initialized to zeroes when the structure is initialized. As such, comparing structs byte-for-byte may fail on some compilers even if the structures do in fact contain the exact same data in their field. Change tests to wean off
memcmp().