Issues with memcpy

Javier Valencia jvalencia@log01.org
Wed Apr 27 13:32:00 GMT 2005


Thanks John, it was the problem, uninitialized struct.

To all: i understand now whats happening about aligned stuff, thanks!!

So what is the best way to copy a struct to a byte array without copying 
empty aligned spaces?
I'm doing now the ugly way, just pointing to each field each time and 
copying to the buffer.

It's for transmition purposes.



More information about the Gcc-help mailing list