Re: Struct on on x86_64 mac os x

2009-10-21 Thread Dave Angel
Mark Dickinson wrote: On Oct 20, 10:51 pm, Tommy Grav wrote: I have created a binary file that saves this struct from some C code: struct recOneData { char label[3][84]; char constName[400][6]; double timeData[3]; long int numConst; double AU;

Re: Struct on on x86_64 mac os x

2009-10-21 Thread Mark Dickinson
On Oct 21, 9:18 am, Mark Dickinson wrote: > On Oct 20, 10:51 pm, Tommy Grav wrote: > > >      def read_header(cls): > >          hdrData = "84s"*3 > >          constNData = "6s"*400 > > I'm confused:  why is this not "400s"*6 rather than "6s"*400? > Doesn't constName[400][6] mean 6 lots of constN

Re: Struct on on x86_64 mac os x

2009-10-21 Thread Mark Dickinson
On Oct 20, 10:51 pm, Tommy Grav wrote: > I have created a binary file that saves this struct from some C code: > >    struct recOneData { >           char label[3][84]; >           char constName[400][6]; >         double timeData[3]; >       long int numConst; >         double AU; >         doubl

Re: Struct on on x86_64 mac os x

2009-10-21 Thread Ulrich Eckhardt
Tommy Grav wrote: > I have created a binary file that saves this struct from some C code: > >struct recOneData { > char label[3][84]; > char constName[400][6]; > double timeData[3]; > long int numConst; > double AU; > double EMRAT; > long

Re: Struct on on x86_64 mac os x

2009-10-21 Thread Mark Tolonen
"Tommy Grav" wrote in message news:d705ab12-0bee-495a-b1e5-c43245e40...@pha.jhu.edu... I have created a binary file that saves this struct from some C code: struct recOneData { char label[3][84]; char constName[400][6]; double timeData[3]; long int numConst;

Re: Struct on on x86_64 mac os x

2009-10-20 Thread Gabriel Genellina
En Tue, 20 Oct 2009 18:51:21 -0300, Tommy Grav escribió: I have created a binary file that saves this struct from some C code: struct recOneData { char label[3][84]; char constName[400][6]; double timeData[3]; long int numConst; double AU;

Struct on on x86_64 mac os x

2009-10-20 Thread Tommy Grav
I have created a binary file that saves this struct from some C code: struct recOneData { char label[3][84]; char constName[400][6]; double timeData[3]; long int numConst; double AU; double EMRAT; long int coeffPtr[12][3]; long int DENUM;