Re: sizeof error?
- From: "Hendrik Schober" <SpamTrap@xxxxxx>
- Date: Fri, 12 Aug 2005 10:10:38 +0200
Michael R. Copeland <mrc2323@xxxxxxx> wrote:
> [...]
> I have, I believe, a good reason: I am reading (with fread) a binary
> data file into this structure. The data is 6 bytes/record, and I tried
> - unsuccessfully - to use sizeof to specify the size of each read. It
> didn't work until I used a constant value of 6...which isn't the way I
> wanted to use the language. <sigh...>
Look into #pragma pack.
Schobi
--
SpamTrap@xxxxxx is never read
I'm Schobi at suespammers dot org
"Coming back to where you started is not the same as never leaving"
Terry Pratchett
.
- References:
- sizeof error?
- From: Michael R. Copeland
- Re: sizeof error?
- From: Nikolaos D. Bougalis
- Re: sizeof error?
- From: Michael R. Copeland
- sizeof error?
- Prev by Date: Re: SIGSEGV exception inside _fpreset
- Next by Date: Re: .zip of header fixes for VC++ 6.0
- Previous by thread: Re: sizeof error?
- Next by thread: Re: sizeof error?
- Index(es):
Relevant Pages
|