Binary I/O for Newbie

Tobias Brandt tob.brandt at googlemail.com
Mon Feb 27 12:42:33 PST 2012


> Just looked at my old C++ code.  And the struct looks like this:
>
>
> struct TaqIdx {
>  char symbol[10];
>  int tdate;
>  int begrec;
>  int endrec;
> }__attribute__((packed));
>
> So I am guessing I want to use the align(1) as Justin suggested. Correct?

Yes.


More information about the Digitalmars-d-learn mailing list