I don't have a clear example for this. Say I had something like:
I know if I compile the code on Suse Linux 9.1 and then on FreeBSD 4.6, the structure would get padded differently. Would using memcpy() be a possible solution to get around the padding problem?Code:#include <stdio.h> struct packet { int head; char tail; }; int main(void) { struct packet route; return 0; }