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

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -