TIP: Click on subject to list as thread! ANSI
echo: cis.os9.68000.osk
to: Bob van der Poel 76510,2203 (X)
from: James Jones 76257,562
date: 1991-06-24 22:07:42
subject: #11185-#Allocation help

#: 11186 S12/OS9/68000 (OSK)
    24-Jun-91  22:07:42
Sb: #11185-#Allocation help
Fm: James Jones 76257,562
To: Bob van der Poel 76510,2203 (X)

The canonical C sleaze method is the trailing one-element array method.  C
*does* guarantee that the order of declaration corresponds to the order of
fields in memory for structures, aside from some fine print concerning bit
fields (the vagaries of byte ordering and the like don't let one say quite as
much about them as about plain old members of structures).  Strictly speaking,
the method doesn't *have* to work (an interpreted C, or some system with bounds
checking, --er, attempts--to go past the end of the array as declared), but in
practice it will work.

There is 1 Reply.

SOURCE: compuserve via textfiles.com

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™.