From: | Emanuele Cesaroni |
Date: | 20 Jun 2000 at 03:05:42 |
Subject: | #pragma pack od StormC. |
Hi c coders.
Do you know a way to use the directive "#pragma pack" in gcc style on StormC
compiler ?
Or do you know the packing method ?
This to load a 3dstudio file, which has some chunks, the chunks start with
an ID (a word) and the chunk's size in bytes (a word).
In a source i found:
//
#pragma pack(2)
typedef struct {
word id;
dword len;
} TChunkHeader, *PChunkHeader;
//
The ID is ok, i can read its, but the lenght field is not so readable, is it
packed ??
Thank you.
Bye.
Emanuele
------------------------------------------------------------------------
Win $5,000 to spend on a vacation getaway.CLICK NOW, ends 6/30/00.
http://click.egroups.com/1/5523/1/_/451227/_/961459205/
------------------------------------------------------------------------