Mail Archives: djgpp/1996/05/10/01:17:07
John Fortin wrote:
> OK, I'm a bit confused..(nothing new i'm afraid)... The structure
> below was taken from the VESA 1.2 spec. sizeof(_VGAInfoBlock) should
> be 256. DJGPP gives 260. What's up with this.
This is an ANSI C question, not a DJGPP one. Structure padding is allowed in
ANSI C, and the way it is done is implementation-dependent. Attempting to use
a structure to represent data like this is inherently
implementation-dependent. You should be manipulating one member at a time.
--
Erik Max Francis &tSftDotIotE && http://www.alcyone.com/max && max AT alcyone DOT com
San Jose, California, U.S.A. && 37 20 07 N 121 53 38 W && the 4th R is respect
H.3`S,3,P,3$S,#$Q,C`Q,3,P,3$S,#$Q,3`Q,3,P,C$Q,#(Q.#`-"C`- && 1love && folasade
Omnia quia sunt, lumina sunt. && Dominion, GIGO, GOOGOL, Omega, Psi, Strategem
"Out from his breast/his soul went to seek/the doom of the just." -- _Beowulf_
- Raw text -