TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: LEE KIRBY
from: LUC MOREAU
date: 1997-12-29 21:44:00
subject: Extra bytes

Le 23 Dec 97, Lee Kirby parlait à All au sujet de "Extra bytes":
 LK> I'm very new to C++, and can't figure out why I get two extra
 LK> bytes when I write this structure to a file:
 LK> struct fidoMsg::fMsg {
 LK> The way I count, this structure should be only 190 bytes, but if
 LK> I do a
 LK> sizeof( fMsg), it reports 192!
Try using
#pragma pack(1)
before you declare the struct
Salut,
	Luc
--- FEddi 0.9pl7 via ifcico
---------------
* Origin: Ignorance is curable. Stupidity is ETERNAL. (2:293/3202.18)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.