struct - How to covert a structure to a byte array in C? -


possible duplicates:
how convert struct char array in c
portable way of writing c struct file (serialisation c)

i looking converting structure byte array in c , confused in doing that.please show me right way in achieving that. in advance.

a structure byte array. starts @ &mystruct , has length of sizeof(mystruct_type) bytes.

if binaries long or contain gaps, check #pragma pack settings.

hth

maro


Comments

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -