J
Jason Curl
Hello,
Does the C standard specify (and if so, how, or possibly a reference to
the standard - I don't have a copy). I am also assuming that CHAR_BIT is
8 (for Posix systems)
a) How elements in a union overlap
b) limitations on how elements in a structure are padded
This will help me in writing (hopefully) portable C code that can
communicate across different architectures, that may be faster and more
memory efficient than copying from one buffer to another.
Or is the only practical way to memcpy() taking into account endianness
of the machine into a "char *buffer"?
Thanks,
Jason.
Does the C standard specify (and if so, how, or possibly a reference to
the standard - I don't have a copy). I am also assuming that CHAR_BIT is
8 (for Posix systems)
a) How elements in a union overlap
b) limitations on how elements in a structure are padded
This will help me in writing (hopefully) portable C code that can
communicate across different architectures, that may be faster and more
memory efficient than copying from one buffer to another.
Or is the only practical way to memcpy() taking into account endianness
of the machine into a "char *buffer"?
Thanks,
Jason.